activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [03/13] activemq-artemis git commit: ARTEMIS-835 speed up test
Date Fri, 04 Nov 2016 13:29:06 GMT
ARTEMIS-835 speed up test


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

Branch: refs/heads/ARTEMIS-780
Commit: beda22b27315dd1e7e5ade4070af75c5935c0235
Parents: 4f49740
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Wed Nov 2 13:43:35 2016 -0400
Committer: jbertram <jbertram@apache.com>
Committed: Thu Nov 3 20:35:15 2016 -0500

----------------------------------------------------------------------
 .../java/org/apache/activemq/artemis/utils/TimeUnitsTest.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/beda22b2/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/TimeUnitsTest.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/TimeUnitsTest.java
b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/TimeUnitsTest.java
index ae09f9c..32913c7 100644
--- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/TimeUnitsTest.java
+++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/TimeUnitsTest.java
@@ -36,14 +36,13 @@ public class TimeUnitsTest {
       File tmpFile = folder.newFile("myfile.txt");
       assertTrue(tmpFile.exists());
       long begin = System.currentTimeMillis();
-      boolean result = TimeUtils.waitOnBoolean(false, 2000, tmpFile::exists);
+      boolean result = TimeUtils.waitOnBoolean(false, 100, tmpFile::exists);
       long end = System.currentTimeMillis();
 
       assertFalse(result);
       assertTrue(tmpFile.exists());
       //ideally the sleep time should > 2000.
-      System.out.println("actually waiting time: " + (end - begin));
-      assertTrue((end - begin) >= 2000);
+      assertTrue((end - begin) >= 100);
       tmpFile.delete();
       begin = System.currentTimeMillis();
       result = TimeUtils.waitOnBoolean(false, 5000, tmpFile::exists);


Mime
View raw message