Skip to content

Commit

Permalink
add back testbench deleted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-munro committed Dec 19, 2024
1 parent 0776746 commit f623d67
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public void start() {
throw new IllegalStateException(
String.format("Timeout while attempting to pull docker image '%s'", dockerImage));
}

int port = URI.create(baseUri).getPort();
int gRPCPort = URI.create(gRPCBaseUri).getPort();
final List<String> command =
Expand Down Expand Up @@ -309,6 +310,7 @@ public void stop() {
} catch (IllegalThreadStateException e) {
attemptForceStopContainer = true;
}

if (attemptForceStopContainer) {
LOGGER.warning("Container did not gracefully exit, attempting to explicitly stop it.");
System.out.println("Container did not gracefully exit, attempting to explicitly stop it.");
Expand All @@ -320,6 +322,7 @@ public void stop() {
int shutdownProcessExitValue = shutdownProcess.exitValue();
LOGGER.warning("Container exit value = " + shutdownProcessExitValue);
}

// wait for the server to shutdown
runWithRetries(
() -> {
Expand Down

0 comments on commit f623d67

Please sign in to comment.