From 8514064d5c910766c9d74aeb61b2748e8a2553f3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sun, 10 Apr 2016 23:28:37 -0700 Subject: [PATCH] Tweak FileSystemWatcherTests timing for Windows --- .../boot/devtools/filewatch/FileSystemWatcherTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);