Skip to content

Commit 94b3d54

Browse files
otelbot[bot]trask
andauthored
Review fixes for internal-application-logger:javaagent (#17370)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com> Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
1 parent a6a820e commit 94b3d54

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

instrumentation/internal/internal-application-logger/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggerInstrumentationTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ private static List<String> forkAndRun(String mainClassName) throws Exception {
7272
}
7373
});
7474

75-
process.waitFor(10, SECONDS);
75+
boolean exited = process.waitFor(10, SECONDS);
76+
if (!exited) {
77+
process.destroyForcibly();
78+
}
79+
assertThat(exited).isTrue();
80+
assertThat(process.exitValue()).isZero();
7681
return output.join();
7782
}
7883
}

0 commit comments

Comments
 (0)