groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Fix `testMemoizeConcurrently`
Date Thu, 03 May 2018 10:52:28 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 62f22a2a2 -> 639264e7f


Fix `testMemoizeConcurrently`

(cherry picked from commit c240418)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 639264e7fe9ed44f0b81266a24748e09c6d0b921
Parents: 62f22a2
Author: sunlan <sunlan@apache.org>
Authored: Thu May 3 18:50:52 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Thu May 3 18:52:21 2018 +0800

----------------------------------------------------------------------
 src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/639264e7/src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy b/src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy
index db91778..b99f749 100644
--- a/src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy
+++ b/src/test/org/codehaus/groovy/runtime/memoize/MemoizeTest.groovy
@@ -167,7 +167,7 @@ public class MemoizeTest extends AbstractMemoizeTestCase {
                 Utils.combinations(things, 2) 
             } 
         }
-        threadList << (0..<5).collect {
+        threadList.addAll((0..<5).collect {
             Thread.start {
                 def things = [
                     [1, 2, 3],
@@ -181,7 +181,7 @@ public class MemoizeTest extends AbstractMemoizeTestCase {
                 ]
                 Utils.combinations(things, 2) 
             }
-        }
+        })
         
         threadList*.join()
         


Mime
View raw message