Skip to content

Commit 0429666

Browse files
committed
One more attempt for Redis Streams test
1 parent 20348ae commit 0429666

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spring-integration-redis/src/test/java/org/springframework/integration/redis/inbound/ReactiveRedisStreamMessageProducerTests.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ public void testReadingPendingMessageWithNoAutoACK() {
186186
Address address = new Address("Winterfell, Westeros");
187187
Person person = new Person(address, "John Snow");
188188

189+
this.template.opsForStream()
190+
.createGroup(STREAM_KEY, this.redisStreamMessageProducer.getBeanName())
191+
.as(StepVerifier::create)
192+
.assertNext(message -> assertThat(message).isEqualTo("OK"))
193+
.thenCancel()
194+
.verify(Duration.ofSeconds(10));
195+
189196
this.redisStreamMessageProducer.setCreateConsumerGroup(true);
190197
this.redisStreamMessageProducer.setAutoAck(false);
191198
this.redisStreamMessageProducer.setConsumerName(CONSUMER);
@@ -209,7 +216,7 @@ public void testReadingPendingMessageWithNoAutoACK() {
209216

210217
this.messageHandler.handleMessage(new GenericMessage<>(person));
211218

212-
stepVerifier.verify(Duration.ofSeconds(20));
219+
stepVerifier.verify(Duration.ofSeconds(10));
213220

214221
await().until(() ->
215222
template.opsForStream()

0 commit comments

Comments
 (0)