[Jboss-cvs] JBossAS SVN: r56073 - branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/main/org/jboss/test/cluster/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 18 12:13:51 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-08-18 12:13:50 -0400 (Fri, 18 Aug 2006)
New Revision: 56073
Modified:
branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/main/org/jboss/test/cluster/test/SimpleTestCase.java
Log:
Remove unnecessary sleep that was breaking the test
Modified: branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/main/org/jboss/test/cluster/test/SimpleTestCase.java
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/main/org/jboss/test/cluster/test/SimpleTestCase.java 2006-08-18 16:13:20 UTC (rev 56072)
+++ branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/main/org/jboss/test/cluster/test/SimpleTestCase.java 2006-08-18 16:13:50 UTC (rev 56073)
@@ -111,11 +111,8 @@
// Create a session on server 1.
HttpClient client1 = new HttpClient();
- makeGet(client1, baseURL1_ +setURLName);
+ makeGet(client1, baseURL1_ +setURLName);
- sleepThread(18000);
-
-
// Find out the session id and use it to build an FQN
String sessionID = getSessionID(client1, servers_[1]);
// Strip off the jvmRoute, if there is one
@@ -160,9 +157,11 @@
// Confirm 2nd session is gone from the distributed cache on node 0
RMIAdaptor[] adaptors = getAdaptors();
- assertNull("Session gone from distributed cache",
- SessionTestUtil.getSessionVersion(adaptors[0], sessionFqn));
- assertNull("Session gone from distributed cache",
+ assertEquals("Session gone from distributed cache for " + sessionFqn,
+ null,
+ SessionTestUtil.getSessionVersion(adaptors[0], sessionFqn));
+ assertEquals("Session gone from distributed cache for " + sessionFqn,
+ null,
SessionTestUtil.getBuddySessionVersion(adaptors[0], sessionFqn));
getLog().debug("Exit testSessionTimeout");
More information about the jboss-cvs-commits
mailing list