From 1713a49551e6be37b5f34ecd1177086fc74685fc Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 6 Mar 2018 15:43:07 +1100 Subject: [PATCH] improved timing on http2 reset stream test Signed-off-by: Greg Wilkins --- .../org/eclipse/jetty/http2/client/StreamResetTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/StreamResetTest.java b/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/StreamResetTest.java index cc6ffc97d4c..bea64c1946d 100644 --- a/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/StreamResetTest.java +++ b/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/StreamResetTest.java @@ -262,7 +262,7 @@ public class StreamResetTest extends AbstractTest try { // Wait for the reset to happen. - Assert.assertTrue(resetLatch.await(5, TimeUnit.SECONDS)); + Assert.assertTrue(resetLatch.await(10, TimeUnit.SECONDS)); } catch (InterruptedException x) { @@ -273,9 +273,9 @@ public class StreamResetTest extends AbstractTest { // Write some content after the stream has // been reset, it should throw an exception. - for (int i = 0; i < 10; i++) + for (int i = 0; i < 100; i++) { - Thread.sleep(500); + Thread.sleep(100); response.getOutputStream().write(data); response.flushBuffer(); } @@ -304,7 +304,7 @@ public class StreamResetTest extends AbstractTest } }); - Assert.assertTrue(dataLatch.await(5, TimeUnit.SECONDS)); + Assert.assertTrue(dataLatch.await(10, TimeUnit.SECONDS)); } @Test