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); write(bar, null);
assert(!watcher.readChanges(changes, 100.msecs)); assert(!watcher.readChanges(changes, 100.msecs));
remove(bar); remove(bar);
assert(!watcher.readChanges(changes, 1500.msecs));
watcher = NativePath(dir).watchDirectory(Yes.recursive); watcher = NativePath(dir).watchDirectory(Yes.recursive);
assert(!watcher.readChanges(changes, 1500.msecs));
write(foo, null); write(foo, null);
sleep(sleepTime); sleep(sleepTime);
write(foo, [0, 1]); write(foo, [0, 1]);