Browse Source

Correct timeout logic when awaiting exception in LiveReloadServerTests

pull/4119/head
Andy Wilkinson 10 years ago
parent
commit
377107c4ff
  1. 2
      spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

2
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

@ -130,7 +130,7 @@ public class LiveReloadServerTests { @@ -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);
}
}

Loading…
Cancel
Save