Skip to content

Commit

Permalink
fix: fix flakiness in test HealthCheckConfigValidator#startValidation…
Browse files Browse the repository at this point in the history
…sShouldFailIfAHealthCheckConfiguredButNotRegistered
  • Loading branch information
simonh5 committed Oct 13, 2023
1 parent aa7a6db commit cb15b9a
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-3, check-2]");
assertThat(e.getMessage()).satisfiesAnyOf(
message -> assertThat(message).contains("[check-3, check-2]"),
message -> assertThat(message).contains("[check-2, check-3]")
);
}
}
}

0 comments on commit cb15b9a

Please sign in to comment.