Repository: incubator-groovy
Updated Branches:
  refs/heads/master ad43ad456 -> 87fc126ca


CacheCleanupCollectedSoftReferencesTests do not run consistently on the build 
server, so disable them


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/87fc126c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/87fc126c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/87fc126c

Branch: refs/heads/master
Commit: 87fc126ca34e719e05e8fc6e38667d992b22519a
Parents: ad43ad4
Author: pascalschumacher <pascalschumac...@gmx.net>
Authored: Mon Jul 13 18:24:34 2015 +0200
Committer: pascalschumacher <pascalschumac...@gmx.net>
Committed: Mon Jul 13 18:24:34 2015 +0200

----------------------------------------------------------------------
 .../memoize/CacheCleanupCollectedSoftReferencesTest.groovy    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/87fc126c/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
----------------------------------------------------------------------
diff --git 
a/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
 
b/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
index 1f631ff..001104f 100644
--- 
a/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
+++ 
b/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
@@ -18,10 +18,13 @@
  */
 package org.codehaus.groovy.runtime.memoize
 
+import org.junit.Ignore
+
 /**
  * @author Rafael Luque
  */
-public class CacheCleanupCollectedSoftReferencesTest extends GroovyTestCase {  
 
+@Ignore("do not run consistently on the build server")
+class CacheCleanupCollectedSoftReferencesTest extends GroovyTestCase {
 
     void testCollectedCacheValuesAreEnqueued() {
 
@@ -67,7 +70,6 @@ public class CacheCleanupCollectedSoftReferencesTest extends 
GroovyTestCase {
         assert cache.cache.size() == 1 : 'collected SoftReferences should be 
removed from cache'
     }
 
-
     private void checkSoftReferenceAreSoftlyReachable(softReference) {
         assert softReference.get() == null : 
             'cache values should be softly reachable and collected before an 
OOME'
@@ -84,6 +86,5 @@ public class CacheCleanupCollectedSoftReferencesTest extends 
GroovyTestCase {
         } catch (Throwable e) {
             // Ignore OOME
         }
-
     }
 }

Reply via email to