[
https://jira.jboss.org/jira/browse/JBMESSAGING-1757?page=com.atlassian.ji...
]
Howard Gao closed JBMESSAGING-1757.
-----------------------------------
Resolution: Done
Introduce a 'test.timeFactor' system property. To use it, any test that needs to
sleep can use it as follows:
long sleepTime = TestUtil.getProperSleepTime(defaultValue);
Thread.sleep(sleepTime);
where the value of sleepTime is determined by (value of test.timeFactor) *
(defaultValue);
default value of 'test.timeFactor' is 1.
to run tests in slow env, just give a larger factor value from command line:
ant -Dtest.timeFactor=3
Tests that rely on timing may fail in slow test environments
------------------------------------------------------------
Key: JBMESSAGING-1757
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1757
Project: JBoss Messaging
Issue Type: Task
Affects Versions: 1.4.0.SP3.CP09, 1.4.5.GA, 1.4.6.GA
Reporter: Howard Gao
Assignee: Howard Gao
Fix For: 1.4.0.SP3.CP10, 1.4.6.GA.SP1, 1.4.7.GA
Some tests, especially some clustered tests, are easy to fail due to slow test machines
and networks. Need a way to alleviate the situation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira