Skip to content

Commit c6249cb

Browse files
committed
Limit test to RabbitMQ 4.1.2+
1 parent f34aeef commit c6249cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/test/java/com/rabbitmq/stream/impl/RecoveryClusterTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import static com.rabbitmq.stream.impl.Assertions.assertThat;
1818
import static com.rabbitmq.stream.impl.LoadBalancerClusterTest.LOAD_BALANCER_ADDRESS;
19+
import static com.rabbitmq.stream.impl.TestUtils.BrokerVersion.RABBITMQ_4_1_2;
1920
import static com.rabbitmq.stream.impl.TestUtils.newLoggerLevel;
2021
import static com.rabbitmq.stream.impl.TestUtils.sync;
2122
import static com.rabbitmq.stream.impl.TestUtils.waitAtMost;
@@ -30,6 +31,7 @@
3031
import com.google.common.collect.Streams;
3132
import com.google.common.util.concurrent.RateLimiter;
3233
import com.rabbitmq.stream.*;
34+
import com.rabbitmq.stream.impl.TestUtils.BrokerVersionAtLeast;
3335
import com.rabbitmq.stream.impl.TestUtils.DisabledIfNotCluster;
3436
import com.rabbitmq.stream.impl.TestUtils.Sync;
3537
import com.rabbitmq.stream.impl.Tuples.Pair;
@@ -292,6 +294,7 @@ void clusterRestart(boolean useLoadBalancer, boolean forceLeader) throws Interru
292294

293295
@ParameterizedTest
294296
@ValueSource(booleans = {true, false})
297+
@BrokerVersionAtLeast(RABBITMQ_4_1_2)
295298
void sacWithClusterRestart(boolean superStream) throws Exception {
296299
environment =
297300
environmentBuilder

src/test/java/com/rabbitmq/stream/impl/TestUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,8 @@ public enum BrokerVersion {
10641064
RABBITMQ_3_11_11("3.11.11"),
10651065
RABBITMQ_3_11_14("3.11.14"),
10661066
RABBITMQ_3_13_0("3.13.0"),
1067-
RABBITMQ_4_0_0("4.0.0");
1067+
RABBITMQ_4_0_0("4.0.0"),
1068+
RABBITMQ_4_1_2("4.1.2");
10681069

10691070
final String value;
10701071

0 commit comments

Comments
 (0)