From f81c424509a7a3c524c94eac8e2d90dc65ff64fd Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 15 Mar 2017 19:40:59 +1100 Subject: [PATCH] Improved test wait --- .../org/eclipse/jetty/continuation/ContinuationsTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test-continuation/src/test/java/org/eclipse/jetty/continuation/ContinuationsTest.java b/tests/test-continuation/src/test/java/org/eclipse/jetty/continuation/ContinuationsTest.java index 05fbc3af76c..df8e7c4f883 100644 --- a/tests/test-continuation/src/test/java/org/eclipse/jetty/continuation/ContinuationsTest.java +++ b/tests/test-continuation/src/test/java/org/eclipse/jetty/continuation/ContinuationsTest.java @@ -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(); } }