[jboss-cvs] JBossAS SVN: r110259 - branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 4 05:52:36 EST 2011


Author: mlinhard
Date: 2011-01-04 05:52:36 -0500 (Tue, 04 Jan 2011)
New Revision: 110259

Modified:
   branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedReplicationTestCase.java
Log:
fixed communication ordering in testReplicatedCasExists2

Modified: branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedReplicationTestCase.java
===================================================================
--- branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedReplicationTestCase.java	2011-01-04 10:51:24 UTC (rev 110258)
+++ branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/MemcachedReplicationTestCase.java	2011-01-04 10:52:36 UTC (rev 110259)
@@ -161,15 +161,16 @@
 		String casId1 = mc1.getCasId(KEY_A);
 		String casId2 = mc2.getCasId(KEY_A);
 		assertEquals(casId1, casId2);
+		
 		mc2.writeln("cas "+KEY_A+" 0 0 2 " + casId1);
 		mc2.writeln("B2");
+		mc2.flush();
+		assertEquals("STORED", mc2.readln());
+
 		mc1.writeln("cas "+KEY_A+" 0 0 2 " + casId1);
 		mc1.writeln("B1");
-		mc2.flush();
 		mc1.flush();
-		assertEquals("STORED", mc2.readln());
 		assertEquals("EXISTS", mc1.readln());
-		assertNotSame(mc1.getCasId(KEY_A), mc2.getCasId(KEY_A));
 	}
 	
 	public void testReplicatedDelete() throws Exception {



More information about the jboss-cvs-commits mailing list