Commit 92c8fa10 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix test after r1797.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1801 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5bd9eceb
...@@ -620,16 +620,16 @@ class StorageMySQSLdbTests(NeoTestBase): ...@@ -620,16 +620,16 @@ class StorageMySQSLdbTests(NeoTestBase):
(u64(tid))) (u64(tid)))
# get all tids for all partitions # get all tids for all partitions
result = self.db.getTIDList(0, 4, 2, (0, 1)) result = self.db.getTIDList(0, 4, 2, (0, 1))
self.assertEquals(result, [tid4, tid3, tid2, tid1]) self.assertEquals(result, [tid1, tid2, tid3, tid4])
# get all tids but from the second with a limit a two # get all tids but from the second with a limit a two
result = self.db.getTIDList(1, 2, 2, (0, 1)) result = self.db.getTIDList(1, 2, 2, (0, 1))
self.assertEquals(result, [tid3, tid2]) self.assertEquals(result, [tid2, tid3])
# get all tids for the first partition # get all tids for the first partition
result = self.db.getTIDList(0, 2, 2, (0, )) result = self.db.getTIDList(0, 2, 2, (0, ))
self.assertEquals(result, [tid3, tid1]) self.assertEquals(result, [tid1, tid3])
# get all tids for the second partition with a limit of one # get all tids for the second partition with a limit of one
result = self.db.getTIDList(0, 1, 2, (1, )) result = self.db.getTIDList(0, 1, 2, (1, ))
self.assertEquals(result, [tid4]) self.assertEquals(result, [tid2])
# get all tids for the second partition with an offset of 3 > nothing # get all tids for the second partition with an offset of 3 > nothing
result = self.db.getTIDList(3, 2, 2, (1, )) result = self.db.getTIDList(3, 2, 2, (1, ))
self.assertEquals(result, []) self.assertEquals(result, [])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment