[jboss-cvs] JBossAS SVN: r108198 - branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Sep 17 00:41:37 EDT 2010
Author: pferraro
Date: 2010-09-17 00:41:37 -0400 (Fri, 17 Sep 2010)
New Revision: 108198
Modified:
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/SessionCountUnitTestCase.java
Log:
Fix obvious bug.
Modified: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/SessionCountUnitTestCase.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/SessionCountUnitTestCase.java 2010-09-17 04:41:07 UTC (rev 108197)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/SessionCountUnitTestCase.java 2010-09-17 04:41:37 UTC (rev 108198)
@@ -284,7 +284,7 @@
managers[i] = SessionTestUtil.createManager("test" + testCount, 1, cacheContainers[i], null);
managers[i].init("test.war", webMetaData);
- managers[1].start();
+ managers[i].start();
assertFalse("Passivation is disabled", managers[i].isPassivationEnabled());
assertEquals("Correct max active count", 1, managers[i].getMaxActiveAllowed());
@@ -292,7 +292,7 @@
}
// Set up a session
- Session sess1 = createAndUseSession(managers[0], "1", true, true);
+ Session session = createAndUseSession(managers[0], "1", true, true);
assertEquals("Session count correct", 1, managers[0].getActiveSessionCount());
assertEquals("Local session count correct", 1, managers[0].getLocalActiveSessionCount());
@@ -303,7 +303,7 @@
createAndUseSession(managers[1], "2", false, false);
// Confirm a session timeout clears space
- sess1.setMaxInactiveInterval(1);
+ session.setMaxInactiveInterval(1);
useSession(managers[0], "1");
SessionTestUtil.sleepThread(managers[0].getMaxInactiveInterval() * 1000 + 100);
More information about the jboss-cvs-commits
mailing list