diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java index 7b367c76ef..9e2016e71d 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java @@ -154,10 +154,10 @@ public class FileSystemWatcherTests { @Test public void waitsForPollingInterval() throws Exception { this.changes.clear(); - setupWatcher(100, 1); + setupWatcher(200, 1); File folder = startWithNewFolder(); touch(new File(folder, "test1.txt")); - Thread.sleep(200); + Thread.sleep(400); touch(new File(folder, "test2.txt")); this.watcher.stopAfter(1); assertThat(this.changes.size()).isEqualTo(2);