test: wait for native repository watcher readiness
This commit is contained in:
1 parent
21a314e4a2
commit
d8ee5d605c
1 file changed
+3
@@ -83,6 +83,9 @@ test('a watched repository is read on filesystem activity instead of on every in
|
||||
await monitor.tick();
|
||||
assert.equal(reads.length, 1);
|
||||
|
||||
// fs.watch can be constructed before the underlying native watch has
|
||||
// finished subscribing (notably on Linux overlay filesystems in CI).
|
||||
await new Promise((resolve) => setTimeout(resolve, 150));
|
||||
revision = 2;
|
||||
await writeFile(path.join(root, 'feature.txt'), 'changed\n');
|
||||
// The watcher debounce and the per-repository cooldown both apply here.
|
||||
|
||||
Reference in new issue
Block a user