Increase timeout on Netty client latch for tests

We use a latch when sending requests during tests so that we do not hang
forever waiting for replies on those requests. This commit increases the
timeout on that latch to 30 seconds because sometimes 10 seconds is just
not enough.
This commit is contained in:
Jason Tedor 2018-03-29 18:33:35 -04:00
parent a75a7d22b2
commit 8967dbf4c6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Netty4HttpClient implements Closeable {
for (HttpRequest request : requests) { for (HttpRequest request : requests) {
channelFuture.channel().writeAndFlush(request); channelFuture.channel().writeAndFlush(request);
} }
latch.await(10, TimeUnit.SECONDS); latch.await(30, TimeUnit.SECONDS);
} finally { } finally {
if (channelFuture != null) { if (channelFuture != null) {