Searched refs:successLatch (Results 1 – 2 of 2) sorted by relevance
77 final CountDownLatch successLatch = new CountDownLatch(1); in testGetBlocksUntilValueAvailable() local86 successLatch.countDown(); in testGetBlocksUntilValueAvailable()96 assertTrue(successLatch.await(10, TimeUnit.SECONDS)); in testGetBlocksUntilValueAvailable()134 final CountDownLatch successLatch = new CountDownLatch(1); in testCanceledFutureThrowsCancellation() local143 successLatch.countDown(); in testCanceledFutureThrowsCancellation()158 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testCanceledFutureThrowsCancellation()164 final CountDownLatch successLatch = new CountDownLatch(1); in testListenersNotifiedOnError() local182 successLatch.countDown(); in testListenersNotifiedOnError()194 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
101 final CountDownLatch successLatch = new CountDownLatch(1); in testCheckedGetThrowsApplicationExceptionOnInterruption() local118 successLatch.countDown(); in testCheckedGetThrowsApplicationExceptionOnInterruption()127 assertTrue(successLatch.await(500, TimeUnit.MILLISECONDS)); in testCheckedGetThrowsApplicationExceptionOnInterruption()