[Checkins]
SVN: gocept.zeoraid/trunk/src/gocept/zeoraid/tests/test_basics.py
Don't use \x00...\x00 as the revision ID because then the
server never sends
Christian Theune
ct at gocept.com
Mon Jan 14 12:03:21 EST 2008
Log message for revision 82873:
Don't use \x00...\x00 as the revision ID because then the server never sends
invalidations.
Changed:
U gocept.zeoraid/trunk/src/gocept/zeoraid/tests/test_basics.py
-=-
Modified: gocept.zeoraid/trunk/src/gocept/zeoraid/tests/test_basics.py
===================================================================
--- gocept.zeoraid/trunk/src/gocept/zeoraid/tests/test_basics.py 2008-01-14 16:39:55 UTC (rev 82872)
+++ gocept.zeoraid/trunk/src/gocept/zeoraid/tests/test_basics.py 2008-01-14 17:03:20 UTC (rev 82873)
@@ -239,18 +239,19 @@
self.assertEquals(0, len(self._backend(0)))
self.assertEquals(0, len(self._backend(1)))
self.assertEquals
- self._dostore()
- self._dostore()
+ self._dostore(
+ revid='\x00\x00\x00\x00\x00\x00\x00\x01')
# See above. This shouldn't be 0 if ClientStorage worked correctly.
- self.assertEquals(0, len(self._storage))
- self.assertEquals(0, len(self._backend(0)))
- self.assertEquals(0, len(self._backend(1)))
+ self.assertEquals(1, len(self._storage))
+ self.assertEquals(1, len(self._backend(0)))
+ self.assertEquals(1, len(self._backend(1)))
self._storage.raid_disable(self._storage.storages_optimal[0])
- self._dostore()
+ self._dostore(
+ revid='\x00\x00\x00\x00\x00\x00\x00\x02')
# See above. This shouldn't be 0 if ClientStorage worked correctly.
- self.assertEquals(0, len(self._storage))
- self.assertEquals(0, len(self._backend(0)))
+ self.assertEquals(2, len(self._storage))
+ self.assertEquals(2, len(self._backend(0)))
self._storage.raid_disable(self._storage.storages_optimal[0])
self.assertRaises(gocept.zeoraid.interfaces.RAIDError,
More information about the Checkins
mailing list