Adding missing asserts to HTTP/2 tests

Motivation:

Some tests do not properly assert that all requests have been
sent/received, so the failures messages may be misleading.

Modifications:

Adding missing asserts to HTTP/2 tests for awaiting requests and
responses.

Result:

HTTP/2 tests properly assert message counts.
This commit is contained in:
nmittler 2014-10-02 09:14:24 -07:00
parent b785128349
commit f8890768be
3 changed files with 4 additions and 4 deletions

View File

@ -224,7 +224,7 @@ public class DefaultHttp2ToHttpConnectionHandlerTest {
}
private void awaitRequests() throws Exception {
requestLatch.await(2, SECONDS);
assertTrue(requestLatch.await(2, SECONDS));
}
private ChannelHandlerContext ctx() {

View File

@ -367,7 +367,7 @@ public class Http2FrameRoundtripTest {
}
private void awaitRequests(long seconds) throws InterruptedException {
requestLatch.await(seconds, SECONDS);
assertTrue(requestLatch.await(seconds, SECONDS));
}
private void awaitRequests() throws InterruptedException {

View File

@ -670,11 +670,11 @@ public class InboundHttp2ToHttpAdapterTest {
}
private void awaitRequests() throws Exception {
serverLatch.await(2, SECONDS);
assertTrue(serverLatch.await(2, SECONDS));
}
private void awaitResponses() throws Exception {
clientLatch.await(2, SECONDS);
assertTrue(clientLatch.await(2, SECONDS));
}
private ChannelHandlerContext ctxClient() {