[Neo-report] r2404 vincent - /trunk/neo/tests/storage/testReplicationHandler.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 2 15:43:45 CET 2010


Author: vincent
Date: Tue Nov  2 15:43:43 2010
New Revision: 2404

Log:
Set a critical TID greater than max_tid.

This way, it is clear that test doesn't expect replication to end after
current chunk.

Modified:
    trunk/neo/tests/storage/testReplicationHandler.py

Modified: trunk/neo/tests/storage/testReplicationHandler.py
==============================================================================
--- trunk/neo/tests/storage/testReplicationHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testReplicationHandler.py [iso-8859-1] Tue Nov  2 15:43:43 2010
@@ -313,11 +313,14 @@ class StorageReplicationHandlerTests(Neo
     def test_answerCheckTIDRangeDifferentBigChunk(self):
         min_tid = self.getNextTID()
         max_tid = self.getNextTID()
+        critical_tid = self.getNextTID()
+        assert min_tid < max_tid < critical_tid, (min_tid, max_tid,
+            critical_tid)
         length = RANGE_LENGTH / 2
         rid = 12
         conn = self.getFakeConnection()
         app = self.getApp(tid_check_result=(length - 5, 0, max_tid), rid=rid,
-            conn=conn)
+            conn=conn, critical_tid=critical_tid)
         handler = ReplicationHandler(app)
         # Peer has different data
         handler.answerCheckTIDRange(conn, min_tid, length, length, 0, max_tid)





More information about the Neo-report mailing list