File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
javaagent/src/test/java/io/opentelemetry/javaagent Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments