Skip to content

Commit

Permalink
Reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Sep 23, 2024
1 parent 464516a commit eba01d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ void defersTasksWithIncompatibleLocksOnMultipleLevels() throws Throwable {
});

assertThat(deferredTasks) //
.containsExactly(incompatibleTask1, incompatibleTask2, incompatibleTask1); // incompatibleTask1 may be deferred multiple times
.startsWith(incompatibleTask1, incompatibleTask2) //
.containsOnly(incompatibleTask1, incompatibleTask2) // incompatibleTask1 may be deferred multiple times
.containsOnlyOnce(incompatibleTask2);
assertThat(taskFactory.tasks) //
.hasSize(3 + 3 + 2) //
.values().extracting(it -> it.completion.isDone()).containsOnly(true);
Expand Down

0 comments on commit eba01d8

Please # to comment.