Fix test transition between different directory watchers.

This commit is contained in:
Sönke Ludwig 2020-10-24 10:53:50 +02:00
parent 2ea3a7ceb1
commit 1ec93b5336

View file

@ -73,7 +73,10 @@ void runTest()
write(bar, null);
assert(!watcher.readChanges(changes, 100.msecs));
remove(bar);
assert(!watcher.readChanges(changes, 1500.msecs));
watcher = NativePath(dir).watchDirectory(Yes.recursive);
assert(!watcher.readChanges(changes, 1500.msecs));
write(foo, null);
sleep(sleepTime);
write(foo, [0, 1]);