ci: make ci more stable for this test

This commit is contained in:
Zixuan Chen 2024-05-21 06:37:31 +08:00
parent 31ff43fde5
commit 4514594709
No known key found for this signature in database

View file

@ -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();