Commit 562e6a21 authored by Vincent Pelletier's avatar Vincent Pelletier

testInvalidationBug: Tolerate multiple indexation activities being spawned.

For example, an immediateReindexObject and a
SQLCatalog_deferFullTextIndexActivity may be spawned.
parent b517ca10
......@@ -88,7 +88,11 @@ class TestInvalidationBug(ERP5TypeTestCase):
self.assertEqual(result_list[1], [0,0]) # activity buffer first
self.assertEqual(result_list[-3], [1,0]) # catalog
self.assertEqual(result_list[-2], None) # ZODB
self.assertEqual(result_list[-1], [1,1]) # activity tables last
result_catalog_count, result_activity_count = result_list[-1]
# activity tables last (there may be multiple activities, but there must be
# at least one).
self.assertEqual(result_catalog_count, 1)
self.assertGreaterEqual(result_activity_count, 1)
# TODO: - skip this test for ZEO>=5 because it's covered upstream
# (and later remove it)
......@@ -169,7 +173,8 @@ class TestInvalidationBug(ERP5TypeTestCase):
activity_tool.manage_addToProcessingList(node_list)
self.commit()
## When the bug is not fixed, we get a -3 failed activity
self.assertNoPendingMessage()
## which would cause tic to fail
self.tic()
def _testReindex(self):
print("To reproduce bugs easily, distribution step should be skipped for"
......
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