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
+8-23Lines changed: 8 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -254,7 +254,7 @@ public void start() {
254
254
ImmutableList.of(
255
255
"docker",
256
256
"run",
257
-
"-i",
257
+
"-d",
258
258
"--rm",
259
259
"--publish",
260
260
port + ":9000",
@@ -325,28 +325,13 @@ public void stop() {
325
325
return;
326
326
}
327
327
try {
328
-
process.destroy();
329
-
process.waitFor(2, TimeUnit.SECONDS);
330
-
booleanattemptForceStopContainer = false;
331
-
try {
332
-
intprocessExitValue = process.exitValue();
333
-
if (processExitValue != 0) {
334
-
attemptForceStopContainer = true;
335
-
}
336
-
LOGGER.warn("Container exit value = {}", processExitValue);
337
-
} catch (IllegalThreadStateExceptione) {
338
-
attemptForceStopContainer = true;
339
-
}
340
-
341
-
if (attemptForceStopContainer) {
342
-
LOGGER.warn("Container did not gracefully exit, attempting to explicitly stop it.");
0 commit comments