[jboss-cvs] JBossAS SVN: r81990 - trunk/testsuite/src/main/org/jboss/test/timer/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 2 19:25:18 EST 2008


Author: scott.stark at jboss.org
Date: 2008-12-02 19:25:18 -0500 (Tue, 02 Dec 2008)
New Revision: 81990

Modified:
   trunk/testsuite/src/main/org/jboss/test/timer/test/SecureTimerUnitTestCase.java
Log:
Increase the wait time for 10 events to occur

Modified: trunk/testsuite/src/main/org/jboss/test/timer/test/SecureTimerUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/timer/test/SecureTimerUnitTestCase.java	2008-12-03 00:12:33 UTC (rev 81989)
+++ trunk/testsuite/src/main/org/jboss/test/timer/test/SecureTimerUnitTestCase.java	2008-12-03 00:25:18 UTC (rev 81990)
@@ -118,7 +118,8 @@
       TimerSLSBHome home = (TimerSLSBHome) getEJBHome(TimerSLSBHome.SECURED_JNDI_NAME);
       TimerSLSB bean = home.create();
       byte[] handle = bean.startTimer(SHORT_PERIOD);
-      Thread.sleep(12 * SHORT_PERIOD + SHORT_PERIOD);
+      // Sleep for 20x the timer interval and expect at least 10 events
+      Thread.sleep(20 * SHORT_PERIOD);
       int count = bean.getTimeoutCount(handle);
       bean.stopTimer(handle);
       assertTrue("Timeout was expected to be called at least 10 times but was "




More information about the jboss-cvs-commits mailing list