groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Refine `MemoizeAtMostTest`
Date Sat, 03 Mar 2018 12:27:36 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 16f908652 -> dcbe543a6


Refine `MemoizeAtMostTest`


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

Branch: refs/heads/GROOVY_2_6_X
Commit: dcbe543a64065df0eecb6012fb799c9966fc4dd2
Parents: 16f9086
Author: danielsun1106 <realbluesun@hotmail.com>
Authored: Sat Mar 3 20:25:14 2018 +0800
Committer: danielsun1106 <realbluesun@hotmail.com>
Committed: Sat Mar 3 20:26:21 2018 +0800

----------------------------------------------------------------------
 .../org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/dcbe543a/src/test/org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy b/src/test/org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy
index 6d727ae..44590e5 100644
--- a/src/test/org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy
+++ b/src/test/org/codehaus/groovy/runtime/memoize/MemoizeAtMostTest.groovy
@@ -82,6 +82,6 @@ public class MemoizeAtMostTest extends AbstractMemoizeTestCase {
         [4, 5, 6, 4, 5, 6, 4, 5, 6, 4, 5, 6].collect { num -> Thread.start { mem(num)
} }*.join()
 
         int c = cnt.get()
-        assert 3 <= c && c <= 6  // cached result may be GCed due to SoftReference,
so `c` may be greater than 3(in most cases, its value is 3)
+        assert 3 <= c && c <= 12  // cached result may be GCed due to SoftReference,
so `c` may be greater than 3(in most cases, its value is 3)
     }
 }


Mime
View raw message