Permalink
Browse files

Merge pull request #111 from jglick/MemoryAssert

[JENKINS-42189] Forcing a test failure in case of another soft leak
  • Loading branch information...
jglick committed Mar 1, 2017
2 parents d59b417 + 3f263df commit 7e0b27433db5a4bb72fe47b826fb54ca29d5bf7b
Showing with 2 additions and 1 deletion.
  1. +1 −0 pom.xml
  2. +1 −1 src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecutionTest.java
@@ -63,6 +63,7 @@
</pluginRepositories>
<properties>
<jenkins.version>1.642.3</jenkins.version>
<jenkins-test-harness.version>2.19</jenkins-test-harness.version>
<npm.loglevel>--silent</npm.loglevel>
<no-test-jar>false</no-test-jar>
</properties>
@@ -118,7 +118,7 @@ public static void register(Object o) {
clearInvocationCaches.invoke(metaClass);
}
for (WeakReference<ClassLoader> loaderRef : LOADERS) {
MemoryAssert.assertGC(loaderRef);
MemoryAssert.assertGC(loaderRef, false);
}
}
});

0 comments on commit 7e0b274

Please sign in to comment.