Skip to content

Commit

Permalink
ci: make ci more stable for this test
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed May 20, 2024
1 parent 31ff43f commit 4514594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loro-js/tests/undo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4514594

Please sign in to comment.