[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/loader ...
Manik Surtani
manik at jboss.org
Tue Jun 26 13:32:55 EDT 2007
User: msurtani
Date: 07/06/26 13:32:55
Modified: tests/functional/org/jboss/cache/loader
CacheLoaderWithReplicationTest.java
Log:
used sync commit and rollback phases for more predictable unit test runs
Revision Changes Path
1.31 +7 -0 JBossCache/tests/functional/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoaderWithReplicationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- CacheLoaderWithReplicationTest.java 18 Jun 2007 14:50:32 -0000 1.30
+++ CacheLoaderWithReplicationTest.java 26 Jun 2007 17:32:55 -0000 1.31
@@ -109,6 +109,13 @@
{
cache1.getConfiguration().setCacheMode(sync ? Configuration.CacheMode.REPL_SYNC : Configuration.CacheMode.REPL_ASYNC);
cache2.getConfiguration().setCacheMode(sync ? Configuration.CacheMode.REPL_SYNC : Configuration.CacheMode.REPL_ASYNC);
+ if (sync)
+ {
+ cache1.getConfiguration().setSyncCommitPhase(true);
+ cache2.getConfiguration().setSyncCommitPhase(true);
+ cache1.getConfiguration().setSyncRollbackPhase(true);
+ cache2.getConfiguration().setSyncRollbackPhase(true);
+ }
if (optimistic)
{
More information about the jboss-cvs-commits
mailing list