From c5b8aa65de9a6ffb81666370a481eb6bbdf0662f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Sat, 15 Jul 2023 18:41:08 +0200 Subject: [PATCH] Make it possible to wait until service is started --- .../src/main/java/io/quarkus/test/bootstrap/BaseService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quarkus-test-core/src/main/java/io/quarkus/test/bootstrap/BaseService.java b/quarkus-test-core/src/main/java/io/quarkus/test/bootstrap/BaseService.java index e309a9e78..3e3ddc75e 100644 --- a/quarkus-test-core/src/main/java/io/quarkus/test/bootstrap/BaseService.java +++ b/quarkus-test-core/src/main/java/io/quarkus/test/bootstrap/BaseService.java @@ -257,6 +257,11 @@ public void restart() { managedResource.restart(); } + public void restartAndWaitUntilServiceIsStarted() { + restart(); + waitUntilServiceIsStarted(); + } + @Override public LogsVerifier logs() { return new LogsVerifier(this);