diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java index 103e92aa44..4418bc5105 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java @@ -130,7 +130,7 @@ public class LiveReloadServerTests { private void awaitClosedException() throws InterruptedException { long startTime = System.currentTimeMillis(); while (this.server.getClosedExceptions().isEmpty() - && System.currentTimeMillis() - startTime > 10000) { + && System.currentTimeMillis() - startTime < 10000) { Thread.sleep(100); } }