Skip to content

Commit b108c48

Browse files
committed
Chapter 5: Kafka: use dev services
1 parent 76b90fe commit b108c48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapter-5/chapter-5-quarkus-kafka-streams/src/test/java/org/acme/service/PriceGeneratorTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public void generatesProperly() {
2222
.select().first(2)
2323
.subscribe().withSubscriber(AssertSubscriber.create(2))
2424
.assertSubscribed()
25-
.awaitItems(2, Duration.ofSeconds(10))
25+
.awaitNextItem(Duration.ofSeconds(7)) // Needs to be a second or 2 more than the timing of actual events
26+
.awaitNextItem(Duration.ofSeconds(7))
2627
.awaitCompletion(Duration.ofSeconds(15))
2728
.assertCompleted()
2829
.getItems();

0 commit comments

Comments
 (0)