From 231a75218501c9f59be5f26e2838aaef1d60f43c Mon Sep 17 00:00:00 2001 From: simonh5 Date: Thu, 28 Sep 2023 22:19:47 -0500 Subject: [PATCH] fix: fix flakiness in test io.dropwizard.health.HealthCheckConfigValidatorTest#startValidationsShouldFailIfAHealthCheckConfiguredButNotRegistered --- .../io/dropwizard/health/HealthCheckConfigValidatorTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); } } }