Skip to content

Commit ff3e664

Browse files
committed
convert test
1 parent 22eeaf5 commit ff3e664

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

javaagent/src/test/java/io/opentelemetry/javaagent/AgentLoadedIntoBootstrapTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void agentLoadsInWhenSeparateJvmIsLaunched() throws Exception {
2424
Collections.emptyMap(),
2525
true);
2626

27-
assertThat(exitCode).isEqualTo(0);
27+
assertThat(exitCode).isZero();
2828
}
2929

3030
// this tests the case where someone adds the contents of opentelemetry-javaagent.jar by mistake
@@ -54,9 +54,12 @@ void applicationUberJarShouldNotBeAddedToTheBootstrapClassLoader() throws Except
5454
pathToJar,
5555
true);
5656

57-
assertThat(exitCode).isEqualTo(0);
57+
assertThat(exitCode).isZero();
5858
} finally {
59-
new File(pathToJar).delete();
59+
boolean deleted = new File(pathToJar).delete();
60+
if (!deleted) {
61+
System.err.println("Failed to delete temporary jar file: " + pathToJar);
62+
}
6063
}
6164
}
6265
}

0 commit comments

Comments
 (0)