|
28 | 28 | import com.google.common.collect.Streams;
|
29 | 29 | import com.google.common.util.concurrent.RateLimiter;
|
30 | 30 | import com.rabbitmq.stream.*;
|
| 31 | +import com.rabbitmq.stream.impl.TestUtils.DisabledIfNotCluster; |
31 | 32 | import com.rabbitmq.stream.impl.TestUtils.Sync;
|
32 | 33 | import com.rabbitmq.stream.impl.Tuples.Pair;
|
33 | 34 | import io.netty.channel.ChannelOption;
|
|
52 | 53 | import org.slf4j.Logger;
|
53 | 54 | import org.slf4j.LoggerFactory;
|
54 | 55 |
|
55 |
| -@TestUtils.DisabledIfNotCluster |
| 56 | +@DisabledIfNotCluster |
56 | 57 | @StreamTestInfrastructure
|
57 | 58 | public class RecoveryClusterTest {
|
58 | 59 |
|
@@ -87,7 +88,7 @@ static void initAll() {
|
87 | 88 |
|
88 | 89 | @BeforeEach
|
89 | 90 | void init(TestInfo info) {
|
90 |
| - int availableProcessors = Runtime.getRuntime().availableProcessors(); |
| 91 | + int availableProcessors = Utils.AVAILABLE_PROCESSORS; |
91 | 92 | LOGGER.info("Available processors: {}", availableProcessors);
|
92 | 93 | ThreadFactory threadFactory = threadFactory("rabbitmq-stream-environment-scheduler-");
|
93 | 94 | scheduledExecutorService = Executors.newScheduledThreadPool(availableProcessors, threadFactory);
|
@@ -134,7 +135,7 @@ void clusterRestart(boolean useLoadBalancer, boolean forceLeader) throws Interru
|
134 | 135 | "Cluster restart test, use load balancer {}, force leader {}",
|
135 | 136 | useLoadBalancer,
|
136 | 137 | forceLeader);
|
137 |
| - int streamCount = 10; |
| 138 | + int streamCount = Utils.AVAILABLE_PROCESSORS; |
138 | 139 | int producerCount = streamCount * 2;
|
139 | 140 | int consumerCount = streamCount * 2;
|
140 | 141 |
|
|
0 commit comments