We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b90fe commit b108c48Copy full SHA for b108c48
chapter-5/chapter-5-quarkus-kafka-streams/src/test/java/org/acme/service/PriceGeneratorTests.java
@@ -22,7 +22,8 @@ public void generatesProperly() {
22
.select().first(2)
23
.subscribe().withSubscriber(AssertSubscriber.create(2))
24
.assertSubscribed()
25
- .awaitItems(2, Duration.ofSeconds(10))
+ .awaitNextItem(Duration.ofSeconds(7)) // Needs to be a second or 2 more than the timing of actual events
26
+ .awaitNextItem(Duration.ofSeconds(7))
27
.awaitCompletion(Duration.ofSeconds(15))
28
.assertCompleted()
29
.getItems();
0 commit comments