Skip to content

Commit bce5832

Browse files
committed
Enable test for 3.11.7 and more
1 parent 1706c15 commit bce5832

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 VMware, Inc. or its affiliates. All rights reserved.
1+
// Copyright (c) 2020-2023 VMware, Inc. or its affiliates. All rights reserved.
22
//
33
// This software, the RabbitMQ Stream Java client library, is dual-licensed under the
44
// Mozilla Public License 2.0 ("MPL"), and the Apache License version 2 ("ASL").
@@ -21,14 +21,15 @@
2121
import com.rabbitmq.stream.Constants;
2222
import com.rabbitmq.stream.Host;
2323
import com.rabbitmq.stream.impl.Client.Broker;
24+
import com.rabbitmq.stream.impl.TestUtils.BrokerVersion;
25+
import com.rabbitmq.stream.impl.TestUtils.BrokerVersionAtLeast;
2426
import java.io.IOException;
2527
import java.net.InetAddress;
2628
import java.net.UnknownHostException;
2729
import java.util.*;
2830
import java.util.function.BooleanSupplier;
2931
import java.util.stream.Collectors;
3032
import java.util.stream.IntStream;
31-
import org.junit.jupiter.api.Disabled;
3233
import org.junit.jupiter.api.Test;
3334
import org.junit.jupiter.api.TestInfo;
3435
import org.junit.jupiter.api.extension.ExtendWith;
@@ -158,9 +159,8 @@ static String hostname() {
158159
}
159160
}
160161

161-
// TODO enable this test when the server fix is available
162162
@Test
163-
@Disabled
163+
@BrokerVersionAtLeast(BrokerVersion.RABBITMQ_3_11_7)
164164
void shouldFilterOutNodesInMaintenance() throws Exception {
165165
Client client = cf.get();
166166
BooleanSupplier hasLeader = () -> client.metadata(stream).get(stream).getLeader() != null;

0 commit comments

Comments
 (0)