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 0899fac commit 218185c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ void startValidationsShouldFailIfAHealthCheckConfiguredButNotRegistered() throws
.contains(" * check-3");
assertThat(logEvent.getFormattedMessage())
.contains(" * check-3");
assertThat(e.getMessage())
.contains("check-2", "check-3");
assertThat(e.getMessage()).satisfiesAnyOf(message -> {
assertThat(message).contains("[check-3, check-2]");
assertThat(message).contains("[check-2, check-3]");
});
}
}
}

0 comments on commit 218185c

Please sign in to comment.