Skip to content

Commit

Permalink
add finalization to InstrumentationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jackshirazi committed Nov 22, 2023
1 parent e405547 commit 65b3021
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ void testNoClassLoaderLeakWhenInstrumentedApplicationIsUndeployed() throws Excep

System.gc();
System.gc();
Runtime.getRuntime().runFinalization();
System.gc();
await().untilAsserted(() -> assertThat(applicationCLRef.get()).isNull());
}

Expand Down

0 comments on commit 65b3021

Please sign in to comment.