From 1ec93b5336090113e198c06b1e1da5aa5b5d9b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 24 Oct 2020 10:53:50 +0200 Subject: [PATCH] Fix test transition between different directory watchers. --- tests/dirwatcher.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dirwatcher.d b/tests/dirwatcher.d index 2cf17a5..d8778df 100644 --- a/tests/dirwatcher.d +++ b/tests/dirwatcher.d @@ -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]);