Skip to content

Commit

Permalink
Fix StartupStatus in tests
Browse files Browse the repository at this point in the history
`StartupStatus.startupComplete` was set in production code, but not in
tests.
  • Loading branch information
findepi committed May 13, 2024
1 parent 86248b3 commit aeba8ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -424,6 +425,7 @@ private TestingTrinoServer(
eventListeners.forEach(eventListenerManager::addEventListener);

getFutureValue(injector.getInstance(Announcer.class).forceAnnounce());
injector.getInstance(StartupStatus.class).startupComplete();

refreshNodes();
}
Expand Down

0 comments on commit aeba8ef

Please sign in to comment.