Fix test transition between different directory watchers.
This commit is contained in:
parent
2ea3a7ceb1
commit
1ec93b5336
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue