groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [1/3] groovy git commit: Reduce number of loops with sleep to speed up test
Date Sun, 21 Feb 2016 14:07:57 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X e9c3dcfdc -> ac6d069a8


Reduce number of loops with sleep to speed up test


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

Branch: refs/heads/GROOVY_2_4_X
Commit: ac6d069a8190730fcff74cbb678a8e63dc32ab64
Parents: faf575e
Author: John Wagenleitner <jwagenleitner@apache.org>
Authored: Sat Feb 13 09:31:35 2016 -0800
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sun Feb 21 15:07:45 2016 +0100

----------------------------------------------------------------------
 src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/ac6d069a/src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy b/src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy
index bea18a8..07ac669 100644
--- a/src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy
+++ b/src/spec/test/DeclarativeConcurrencyASTTransformsTest.groovy
@@ -154,7 +154,7 @@ def counters = new Counters()
 assert counters.get('a') == 0
 assert counters.get('b') == 0
 
-50.times { cpt ->
+10.times { cpt ->
     Thread.start { counters.add('a', 1) }
     def t = Thread.start {
         Thread.sleep(20)
@@ -192,7 +192,7 @@ def counters = new Counters()
 assert counters.get('a') == 0
 assert counters.get('b') == 0
 
-50.times { cpt ->
+10.times { cpt ->
     Thread.start { counters.add('a', 1) }
     def t = Thread.start {
         Thread.sleep(20)


Mime
View raw message