diff --git a/core/trino-main/src/main/java/io/trino/server/testing/TestingTrinoServer.java b/core/trino-main/src/main/java/io/trino/server/testing/TestingTrinoServer.java index afcf08994043..a62bcd513021 100644 --- a/core/trino-main/src/main/java/io/trino/server/testing/TestingTrinoServer.java +++ b/core/trino-main/src/main/java/io/trino/server/testing/TestingTrinoServer.java @@ -83,6 +83,7 @@ import io.trino.server.SessionPropertyDefaults; import io.trino.server.SessionSupplier; import io.trino.server.ShutdownAction; +import io.trino.server.StartupStatus; import io.trino.server.security.CertificateAuthenticatorManager; import io.trino.server.security.ServerSecurityModule; import io.trino.spi.ErrorType; @@ -424,6 +425,7 @@ private TestingTrinoServer( eventListeners.forEach(eventListenerManager::addEventListener); getFutureValue(injector.getInstance(Announcer.class).forceAnnounce()); + injector.getInstance(StartupStatus.class).startupComplete(); refreshNodes(); }