Skip to content

Commit 315a670

Browse files
committed
Attempt to fix flakey test
This test checks that we don't leak memory, but it sometimes timeout on the CI. Doing an explicit GC step after every iteration might help.
1 parent 73e33b1 commit 315a670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/run/module-serialization-proxy-class-unload.scala

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ object Test {
1414
// This would "java.lang.OutOfMemoryError: Java heap space" if ModuleSerializationProxy
1515
// prevented class unloading.
1616
deserializeDynamicLoadedClass()
17+
System.gc()
1718
}
1819
}
1920

0 commit comments

Comments
 (0)