From 451459470991ce455337bf4b42d996f33d0e9ef7 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Tue, 21 May 2024 06:37:31 +0800 Subject: [PATCH] ci: make ci more stable for this test --- loro-js/tests/undo.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loro-js/tests/undo.test.ts b/loro-js/tests/undo.test.ts index 84ece37f..1c9c08be 100644 --- a/loro-js/tests/undo.test.ts +++ b/loro-js/tests/undo.test.ts @@ -42,12 +42,12 @@ describe("undo", () => { test("merge", async () => { const doc = new Loro(); - const undo = new UndoManager(doc, { maxUndoSteps: 100, mergeInterval: 5 }); + const undo = new UndoManager(doc, { maxUndoSteps: 100, mergeInterval: 50 }); for (let i = 0; i < 10; i++) { doc.getText("text").insert(i, i.toString()); doc.commit(); } - await new Promise((resolve) => setTimeout(resolve, 10)); + await new Promise((resolve) => setTimeout(resolve, 100)); for (let i = 0; i < 10; i++) { doc.getText("text").insert(i, i.toString()); doc.commit();