|
17 | 17 | |
18 | 18 | package com.rabbitmq.client.amqp.impl; |
19 | 19 |
|
| 20 | +import static com.rabbitmq.client.amqp.BackOffDelayPolicy.fixedWithInitialDelay; |
20 | 21 | import static com.rabbitmq.client.amqp.ConnectionSettings.Affinity.Operation.CONSUME; |
21 | 22 | import static com.rabbitmq.client.amqp.ConnectionSettings.Affinity.Operation.PUBLISH; |
22 | 23 | import static com.rabbitmq.client.amqp.Resource.State.OPEN; |
23 | 24 | import static com.rabbitmq.client.amqp.impl.Assertions.assertThat; |
24 | 25 | import static com.rabbitmq.client.amqp.impl.TestUtils.*; |
25 | 26 | import static java.lang.String.format; |
26 | | -import static java.time.Duration.ofSeconds; |
27 | 27 | import static java.util.stream.Collectors.toList; |
28 | 28 | import static org.assertj.core.api.Assertions.assertThat; |
29 | 29 |
|
@@ -55,7 +55,10 @@ public class RecoveryClusterTest { |
55 | 55 | static final Duration TIMEOUT = Duration.ofSeconds(20); |
56 | 56 | static final String[] URIS = |
57 | 57 | new String[] {"amqp://localhost:5672", "amqp://localhost:5673", "amqp://localhost:5674"}; |
58 | | - static final BackOffDelayPolicy BACK_OFF_DELAY_POLICY = BackOffDelayPolicy.fixed(ofSeconds(3)); |
| 58 | + static final Duration RECOVERY_INITIAL_DELAY = Duration.ofSeconds(10); |
| 59 | + static final Duration RECOVERY_DELAY = Duration.ofSeconds(3); |
| 60 | + static final BackOffDelayPolicy BACK_OFF_DELAY_POLICY = |
| 61 | + fixedWithInitialDelay(RECOVERY_INITIAL_DELAY, RECOVERY_DELAY); |
59 | 62 | static List<String> nodes; |
60 | 63 | Environment environment; |
61 | 64 | AmqpConnection connection; |
|
0 commit comments