mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Correct timeout logic when awaiting exception in LiveReloadServerTests
This commit is contained in:
parent
b7ecccf0a3
commit
377107c4ff
@ -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…
Reference in New Issue
Block a user