[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/transaction ...
Brian Stansberry
brian.stansberry at jboss.com
Wed Nov 22 13:42:24 EST 2006
User: bstansberry
Date: 06/11/22 13:42:24
Modified: tests/functional/org/jboss/cache/transaction Tag:
Branch_JBossCache_1_4_0
IsolationLevelReadCommittedTest.java
Log:
Fix test timing
Revision Changes Path
No revision
No revision
1.5.4.3 +14 -7 JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: IsolationLevelReadCommittedTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedTest.java,v
retrieving revision 1.5.4.2
retrieving revision 1.5.4.3
diff -u -b -r1.5.4.2 -r1.5.4.3
--- IsolationLevelReadCommittedTest.java 22 Nov 2006 04:02:51 -0000 1.5.4.2
+++ IsolationLevelReadCommittedTest.java 22 Nov 2006 18:42:24 -0000 1.5.4.3
@@ -24,7 +24,7 @@
*
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
*
- * @version $Id: IsolationLevelReadCommittedTest.java,v 1.5.4.2 2006/11/22 04:02:51 bstansberry Exp $
+ * @version $Id: IsolationLevelReadCommittedTest.java,v 1.5.4.3 2006/11/22 18:42:24 bstansberry Exp $
*/
public class IsolationLevelReadCommittedTest extends TestCase
@@ -108,10 +108,17 @@
// yet commit or roll back.
readerCanRead.acquire();
+ try
+ {
// I shouldn't be able to see the "dirty" value
assertEquals("thread w/ read lock " +
"can see subsequent uncommitted changes",
VALUE, cache.get(FQN, KEY));
+ }
+ catch (TimeoutException good)
+ {
+ // this is what should happen due to writer's WL
+ }
// let the writer know it can rollback
writerCanRollback.release();
More information about the jboss-cvs-commits
mailing list