If Gradle executes the SwingMemoryLeakTest in parallel with a heavy test like SamplesRenderingTest, a java.lang.OutOfMemoryError due to failed reallocation of scalar replaced objects could happen. RunnableQueueTest could also be a potential source of failures during parallel execution.
To prevent this:
1) Give more memory to test execution.
2) Split SamplesRenderingTest into smaller tests.
If Gradle executes the
SwingMemoryLeakTest
in parallel with a heavy test likeSamplesRenderingTest
, ajava.lang.OutOfMemoryError
due tofailed reallocation of scalar replaced objects
could happen.RunnableQueueTest
could also be a potential source of failures during parallel execution.To prevent this:
1) Give more memory to test execution. 2) Split
SamplesRenderingTest
into smaller tests.