Repository: activemq-artemis Updated Branches: refs/heads/master cdb52b8a0 -> 306669005
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/8b25f09c Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8b25f09c Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8b25f09c Branch: refs/heads/master Commit: 8b25f09c3bf4dae5509d05c71febce39f8290037 Parents: 8c1ec12 Author: Clebert Suconic <[email protected]> Authored: Wed Nov 2 13:43:35 2016 -0400 Committer: Clebert Suconic <[email protected]> Committed: Wed Nov 2 13:43:51 2016 -0400 ---------------------------------------------------------------------- .../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/8b25f09c/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);
