improved timing on http2 reset stream test

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2018-03-06 15:43:07 +11:00
parent 87bd4e8730
commit 1713a49551
1 changed files with 4 additions and 4 deletions

View File

@ -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