[jboss-cvs] JBossAS SVN: r60899 - trunk/testsuite/src/main/org/jboss/test/txtimer/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 26 04:54:57 EST 2007
Author: dimitris at jboss.org
Date: 2007-02-26 04:54:57 -0500 (Mon, 26 Feb 2007)
New Revision: 60899
Modified:
trunk/testsuite/src/main/org/jboss/test/txtimer/test/SimpleTimerTestCase.java
Log:
Since the test is time sensitive, increase the chance of the timer expiring multiple times.
Modified: trunk/testsuite/src/main/org/jboss/test/txtimer/test/SimpleTimerTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/txtimer/test/SimpleTimerTestCase.java 2007-02-26 09:51:03 UTC (rev 60898)
+++ trunk/testsuite/src/main/org/jboss/test/txtimer/test/SimpleTimerTestCase.java 2007-02-26 09:54:57 UTC (rev 60899)
@@ -1,8 +1,8 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
@@ -67,7 +67,7 @@
TimedMockObject to = new TimedMockObject();
TimerService service = createTimerService(to);
- Timer timer = service.createTimer(500, 1000, null);
+ Timer timer = service.createTimer(500, 500, null);
assertEquals("Expected one txtimer", 1, service.getTimers().size());
sleep(2000);
assertTrue("TimedObject not called enough", 1 < to.getCallCount());
More information about the jboss-cvs-commits
mailing list