Skip to content

Commit 2086ea1

Browse files
committed
Use number of available processors for queue count in test
Instead of 10. This decreases load for low-resource environments, like CI (usually ~ 4 available processors). The VM has to run the test suite itself, but also the 3-node cluster.
1 parent fa99e9c commit 2086ea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/rabbitmq/client/amqp/impl/RecoveryClusterTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class RecoveryClusterTest {
7878
@BeforeAll
7979
static void initAll() {
8080
nodes = Cli.nodes();
81-
LOGGER.info("Available processor(s): {}", Runtime.getRuntime().availableProcessors());
81+
LOGGER.info("Available processor(s): {}", Utils.AVAILABLE_PROCESSORS);
8282
}
8383

8484
@BeforeEach
@@ -127,7 +127,7 @@ void clusterRestart() {
127127
LOGGER.info("Cluster restart test...");
128128
LOGGER.info("Available processors: {}", Runtime.getRuntime().availableProcessors());
129129
LOGGER.info("Java version: {}", System.getProperty("java.version"));
130-
int queueCount = 10;
130+
int queueCount = Utils.AVAILABLE_PROCESSORS;
131131
List<Management.QueueType> queueTypes =
132132
List.of(
133133
Management.QueueType.STREAM,

0 commit comments

Comments
 (0)