Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void severalExecuteWithDifferentRegionOrSenderAreAllowed() throws Interru
};

final String regionName = String.valueOf(i);
final int expectedExecutions = i + 1;
CompletableFuture
.supplyAsync(() -> {
try {
Expand All @@ -177,7 +178,8 @@ public void severalExecuteWithDifferentRegionOrSenderAreAllowed() throws Interru
// This ensures we don't have a race where multiple tasks try to start simultaneously
// and only some get registered before we check the count
await().untilAsserted(
() -> assertThat(service.getNumberOfCurrentExecutions()).isGreaterThanOrEqualTo(i + 1));
() -> assertThat(service.getNumberOfCurrentExecutions())
.isGreaterThanOrEqualTo(expectedExecutions));
}

// Verify all executions are registered
Expand Down
Loading