Commit b04671a2 authored by Sebastien Robin's avatar Sebastien Robin

avoid random failures by setting current revision to 0

If the official repository was stuck for some time, of if
the revison of erp5_base was increasing in a too fast way,
this was making this test failing.  Also it would be better
that this test use a fake repository
parent 7248b675
......@@ -95,7 +95,7 @@ class TestTemplateTool(ERP5TypeTestCase):
self.assertEquals(len(bt_list), 1)
erp5_base = bt_list[0].getObject()
try:
erp5_base.edit(revision=int(erp5_base.getRevision()) - 10)
erp5_base.edit(revision=0)
updatable_bt_list = \
self.templates_tool.getRepositoryBusinessTemplateList(update_only=True)
......
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