Improved graceful shutdown and added tests

This commit is contained in:
Greg Wilkins 2015-07-12 21:32:38 +10:00
parent 9549001d8c
commit 2c3326e049
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ public class GracefulStopTest
long start = System.nanoTime();
server.stop();
long stop = System.nanoTime();
assertThat(TimeUnit.NANOSECONDS.toMillis(stop-start),greaterThan(500L));
assertThat(TimeUnit.NANOSECONDS.toMillis(stop-start),greaterThan(490L));
assertThat(TimeUnit.NANOSECONDS.toMillis(stop-start),lessThan(10000L));
String response = IO.toString(client1.getInputStream());