Issue #561 Fixed test timer

This commit is contained in:
Greg Wilkins 2016-05-11 09:24:02 +10:00
parent d8715ad217
commit bdafea3e96
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ public class GracefulStopTest
assertThat(response2, containsString(" 503 "));
now = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
Thread.sleep(end-now);
Thread.sleep(Math.max(1,end-now));
client1.getOutputStream().write("567890".getBytes());
}
catch(Exception e)