diff --git a/dropwizard-health/src/test/java/io/dropwizard/health/HealthCheckConfigValidatorTest.java b/dropwizard-health/src/test/java/io/dropwizard/health/HealthCheckConfigValidatorTest.java index 1e7514e0a9a..9b93a018345 100644 --- a/dropwizard-health/src/test/java/io/dropwizard/health/HealthCheckConfigValidatorTest.java +++ b/dropwizard-health/src/test/java/io/dropwizard/health/HealthCheckConfigValidatorTest.java @@ -148,8 +148,7 @@ void startValidationsShouldFailIfAHealthCheckConfiguredButNotRegistered() throws assertThat(logEvent.getFormattedMessage()) .contains(" * check-3"); assertThat(e.getMessage()) - .contains("check-2") - .contains("check-3"); + .contains("check-2", "check-3"); } } }