diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java index 97df813e416ef..48de9f8cf6cfd 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java @@ -194,7 +194,7 @@ public static void run(Application application, Class { assertThat(config.getLogRecords()).anySatisfy(r -> { assertThat(r.getMessage()).contains("Failed to start application"); - assertThat(r.getThrown().getMessage()).contains("Migration checksum mismatch for migration version 1.0.0"); + assertThat(ExceptionUtil.getRootCause(r.getThrown()).getMessage()) + .contains("Migration checksum mismatch for migration version 1.0.0"); }); RestAssured.get("/flyway/current-version").then().statusCode(500); });