Skip to content

Commit 593a634

Browse files
Use a more reasonable timeout
1 parent b8ddb13 commit 593a634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/rabbitmq/client/test/functional/ConnectionRecovery.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,9 @@ private ConnectionFactory buildConnectionFactoryWithRecoveryEnabled(boolean disa
750750
}
751751

752752
private static void wait(CountDownLatch latch) throws InterruptedException {
753-
// Very very generous amount of time to wait, just make sure we never
754-
// hang forever
755-
assertTrue(latch.await(1800, TimeUnit.SECONDS));
753+
// we want to wait for recovery to complete for a reasonable amount of time
754+
// but still make recovery failures easy to notice in development environments
755+
assertTrue(latch.await(90, TimeUnit.SECONDS));
756756
}
757757

758758
private void waitForConfirms(Channel ch) throws InterruptedException, TimeoutException {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy