Skip to content

Commit afefdf7

Browse files
committed
pr review
1 parent df62180 commit afefdf7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

muzzle/src/test/java/io/opentelemetry/javaagent/tooling/muzzle/ReferenceMatcherTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,9 @@ void matchSafeClasspaths() {
8686
}
8787

8888
@Test
89-
void matchingDoesNotHoldStrongReferenceToClassloaders() {
90-
try {
91-
assertThat(MuzzleWeakReferenceTestUtil.classLoaderRefIsGarbageCollected()).isTrue();
92-
} catch (InterruptedException | TimeoutException e) {
93-
throw new RuntimeException(e);
94-
}
89+
void matchingDoesNotHoldStrongReferenceToClassloaders()
90+
throws InterruptedException, TimeoutException {
91+
assertThat(MuzzleWeakReferenceTestUtil.classLoaderRefIsGarbageCollected()).isTrue();
9592
}
9693

9794
private static class CountingClassLoader extends URLClassLoader {

0 commit comments

Comments
 (0)