Skip to content

Commit

Permalink
test: more stable ExporterDeleteAfterAcknowledgeTest on pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Nov 22, 2023
1 parent 7b09fb8 commit 66f952b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void shouldDeleteAfterAcknowledge() throws Exception {
var delay = Duration.ofSeconds(3);

// then: cleanup removed all messages except the last ones
await().atMost(Duration.ofSeconds(5)).pollDelay(delay).pollInterval(Duration.ofMillis(500))
await().atMost(Duration.ofSeconds(5)).pollDelay(delay).pollInterval(Duration.ofMillis(500)).pollInSameThread()
.untilAsserted(() -> assertThat(redisConnection.sync().xlen("zeebe:DEPLOYMENT")).isLessThan(xlen));

}
Expand All @@ -98,7 +98,7 @@ public void shouldNotDeleteWhenConsumedButNotAcknowledged() throws Exception {
var delay = Duration.ofSeconds(3);

// then: cleanup did not remove messages
await().atMost(Duration.ofSeconds(5)).pollDelay(delay).pollInterval(Duration.ofMillis(500))
await().atMost(Duration.ofSeconds(5)).pollDelay(delay).pollInterval(Duration.ofMillis(500)).pollInSameThread()
.untilAsserted(() -> assertThat(redisConnection.sync().xlen("zeebe:DEPLOYMENT")).isGreaterThanOrEqualTo(xlen));
}

Expand Down

0 comments on commit 66f952b

Please sign in to comment.