You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry/TestBench.java
+37-49Lines changed: 37 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -318,67 +318,55 @@ public boolean shouldRetry(
318
318
319
319
@Override
320
320
publicvoidstop() {
321
-
if (runningOutsideAlready || Boolean.getBoolean("testbench.keepAlive")) {
322
-
// if the server was running outside the tests already, or we want to keep it alive, simply return
321
+
if (runningOutsideAlready) {
322
+
// if the server was running outside the tests already simply return
323
323
return;
324
324
}
325
325
try {
326
-
process.destroy();
327
-
process.waitFor(2, TimeUnit.SECONDS);
328
-
booleanattemptForceStopContainer = true;
329
-
try {
330
-
intprocessExitValue = process.exitValue();
331
-
if (processExitValue != 0) {
332
-
attemptForceStopContainer = true;
333
-
}
334
-
LOGGER.warn("Container exit value = {}", processExitValue);
335
-
} catch (IllegalThreadStateExceptione) {
336
-
attemptForceStopContainer = true;
337
-
}
338
-
339
-
if (attemptForceStopContainer) {
340
-
LOGGER.warn("Container did not gracefully exit, attempting to explicitly stop it.");
326
+
if (!Boolean.getBoolean("testbench.keepAlive")) {
327
+
LOGGER.warn("Attempting to explicitly stop container: {}", containerName);
0 commit comments