Merge remote-tracking branch 'origin/jetty-9.4.x'

This commit is contained in:
Greg Wilkins 2016-10-05 16:21:21 +11:00
commit ea6c4ab01a
1 changed files with 9 additions and 1 deletions

View File

@ -118,6 +118,14 @@ public class SessionFailureTest extends AbstractTest
Assert.assertTrue(writeLatch.await(5, TimeUnit.SECONDS)); Assert.assertTrue(writeLatch.await(5, TimeUnit.SECONDS));
Assert.assertTrue(serverFailureLatch.await(5, TimeUnit.SECONDS)); Assert.assertTrue(serverFailureLatch.await(5, TimeUnit.SECONDS));
Assert.assertTrue(clientFailureLatch.await(5, TimeUnit.SECONDS)); Assert.assertTrue(clientFailureLatch.await(5, TimeUnit.SECONDS));
Assert.assertFalse(((HTTP2Session)session).getEndPoint().isOpen()); long start = System.nanoTime();
long now = System.nanoTime();
while (((HTTP2Session)session).getEndPoint().isOpen())
{
if (TimeUnit.NANOSECONDS.toSeconds(now-start)>5)
Assert.fail();
Thread.sleep(10);
now = System.nanoTime();
}
} }
} }