Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 45b9cf3

Browse files
committed
Wait before writing new files
1 parent cda9823 commit 45b9cf3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/acceptance/settings-watch-api.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ describe("watch option modified through api", () => {
5050
watch: true
5151
}
5252
});
53-
await wait(500);
53+
await wait();
5454
fsExtra.copySync(fixturesFolder("files-modification"), fixturesFolder("files-watch"));
5555
await wait(6000);
56-
}, 7000);
56+
}, 10000);
5757

5858
it("should return watch enabled when getting settings", async () => {
5959
const settingsResponse = await request("/admin/settings");
@@ -77,10 +77,10 @@ describe("watch option modified through api", () => {
7777
watch: false
7878
}
7979
});
80-
await wait(500);
80+
await wait();
8181
fsExtra.copySync(fixturesFolder("web-tutorial"), fixturesFolder("files-watch"));
8282
await wait(6000);
83-
}, 7000);
83+
}, 10000);
8484

8585
it("should return watch disabled when getting settings", async () => {
8686
const settingsResponse = await request("/admin/settings");

0 commit comments

Comments
 (0)