Skip to content

Commit af46916

Browse files
committed
Activate test only if filtering is supported
1 parent d143e10 commit af46916

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import com.rabbitmq.stream.impl.ServerFrameHandler.FrameHandlerInfo;
4343
import com.rabbitmq.stream.impl.TestUtils.BrokerVersion;
4444
import com.rabbitmq.stream.impl.TestUtils.BrokerVersionAtLeast;
45+
import com.rabbitmq.stream.impl.TestUtils.DisabledIfFilteringNotSupported;
4546
import io.netty.buffer.ByteBuf;
4647
import io.netty.buffer.ByteBufAllocator;
4748
import io.netty.buffer.UnpooledByteBufAllocator;
@@ -974,6 +975,7 @@ void streamStatsFirstOffsetShouldChangeAfterRetentionKickedIn(TestInfo info) {
974975
}
975976

976977
@Test
978+
@DisabledIfFilteringNotSupported
977979
void publishConsumeWithFilterValueShouldSendSubSetOfStream() throws Exception {
978980
int messageCount = 10_000;
979981
AtomicReference<CountDownLatch> publishLatch =
@@ -988,7 +990,7 @@ void publishConsumeWithFilterValueShouldSendSubSetOfStream() throws Exception {
988990
Response response = publisher.declarePublisher(b(0), null, stream);
989991
assertThat(response).is(ok());
990992

991-
// firt wave of messages with several filter values
993+
// first wave of messages with several filter values
992994
List<String> filterValues = new ArrayList<>(Arrays.asList("apple", "banana", "pear"));
993995
Map<String, AtomicInteger> filterValueCount = new HashMap<>();
994996
Random random = new Random();

0 commit comments

Comments
 (0)