Skip to content

Commit

Permalink
Revert "Use 20 second latch for this test to see how it goes with CI"
Browse files Browse the repository at this point in the history
This reverts commit 3e4f68b.
  • Loading branch information
vietj committed Dec 3, 2015
1 parent 31dfe4b commit 3496ebc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/test/java/io/vertx/test/core/AsyncTestBase.java
Expand Up @@ -589,11 +589,7 @@ protected <T> Handler<AsyncResult<T>> onFailure(Consumer<Throwable> consumer) {
}

protected void awaitLatch(CountDownLatch latch) throws InterruptedException {
awaitLatch(latch, 10);
}

protected void awaitLatch(CountDownLatch latch, int numSecs) throws InterruptedException {
assertTrue(latch.await(numSecs, TimeUnit.SECONDS));
assertTrue(latch.await(10, TimeUnit.SECONDS));
}

protected void waitUntil(BooleanSupplier supplier) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/vertx/test/core/HttpTest.java
Expand Up @@ -4161,7 +4161,7 @@ public void testContexts() throws Exception {
}
}).exceptionHandler(this::fail).end();
}
awaitLatch(latch2, 20);
awaitLatch(latch2);
// Close should be in own context
server.close(ar -> {
assertTrue(ar.succeeded());
Expand Down

0 comments on commit 3496ebc

Please sign in to comment.