Skip to content

Commit

Permalink
fix: fix flakiness in test io.dropwizard.health.HealthCheckConfigVali…
Browse files Browse the repository at this point in the history
…datorTest#startValidationsShouldFailIfAHealthCheckConfiguredButNotRegistered
  • Loading branch information
simonh5 committed Oct 13, 2023
1 parent 218185c commit c2be776
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ void startValidationsShouldFailIfAHealthCheckConfiguredButNotRegistered() throws
.contains(" * check-3");
assertThat(logEvent.getFormattedMessage())
.contains(" * check-3");
assertThat(e.getMessage()).satisfiesAnyOf(message -> {
assertThat(message).contains("[check-3, check-2]");
assertThat(message).contains("[check-2, check-3]");
});
assertThat(e.getMessage()).satisfiesAnyOf(
message -> assertThat(message).contains("[check-3, check-2]"),
message -> assertThat(message).contains("[check-2, check-3]")
);
}
}
}

0 comments on commit c2be776

Please sign in to comment.