Improved test wait

This commit is contained in:
Greg Wilkins 2017-03-15 19:40:59 +11:00
parent d64218f285
commit f81c424509
1 changed files with 5 additions and 2 deletions

View File

@ -378,15 +378,18 @@ public class ContinuationsTest
}
finally
{
server.stop();
if (log != null)
{
for (int i=0;log.isEmpty()&&i<60;i++)
{
Thread.sleep(100);
}
assertThat("Log.size", log.size(),is(1));
String entry = log.get(0);
assertThat("Log entry", entry, startsWith("200 "));
assertThat("Log entry", entry, endsWith(" /"));
}
server.stop();
}
}