[jboss-cvs] JBossAS SVN: r91655 - branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/cluster/multicfg/web/field/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 24 18:02:48 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-07-24 18:02:48 -0400 (Fri, 24 Jul 2009)
New Revision: 91655

Modified:
   branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/cluster/multicfg/web/field/test/FieldBasedTestCase.java
Log:
Fix transient failures

Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/cluster/multicfg/web/field/test/FieldBasedTestCase.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/cluster/multicfg/web/field/test/FieldBasedTestCase.java	2009-07-24 21:52:42 UTC (rev 91654)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/cluster/multicfg/web/field/test/FieldBasedTestCase.java	2009-07-24 22:02:48 UTC (rev 91655)
@@ -99,6 +99,11 @@
       // servlet context)
       makeGet(client, baseURL0_ +modifySubjectUrl);
       
+      // sleeping before checking state on the same server seems unnecessary
+      // but it seems like the jsp is flushing to the client soon enough before
+      // replication that we get transient failures on the next assertion. So...
+      this.sleepThread(DEFAULT_SLEEP);
+      
       // Get the session from the cache
       Object newVersion = SessionTestUtil.getSessionVersion(adaptors[0], sessionFqn);
       




More information about the jboss-cvs-commits mailing list