test: wait for native repository watcher readiness
Managed validation / full (pull_request) Canceled after 0s
ForgeFlow quality gate / quality (pull_request) Successful in 6m19s
ForgeFlow quality gate / secret-scan (pull_request) Failing after 21s

This commit is contained in:
NuklearRabbit
2026-08-27 18:48:10 +02:00
parent 21a314e4a2
commit d8ee5d605c
+3
View File
@@ -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.