mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-28 09:25:36 +00:00
ci: make ci more stable for this test
This commit is contained in:
parent
31ff43fde5
commit
4514594709
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue