Commit 40429299 authored by Rafael Monnerat's avatar Rafael Monnerat

testSlapOSMixin: Update cache id if some value is set

  Some values are set on testing environment, so no need to rely on IsLiveTest
parent 44ee026b
......@@ -171,11 +171,15 @@ class testSlapOSMixin(ERP5TypeTestCase):
self.login()
self.createAlarmStep()
if getattr(self.portal.portal_caches, 'erp5_site_global_id', None):
# we are not on live test so multiple tests can run in parallel
# so ensure that each start tests from scratch
self.portal.portal_caches.erp5_site_global_id = '%s' % random.random()
self.portal.portal_caches._p_changed = 1
if self.isLiveTest():
self.setUpPersistentDummyMailHost()
return
self.portal.portal_caches.erp5_site_global_id = '%s' % random.random()
self.portal.portal_caches._p_changed = 1
self.createCertificateAuthorityFile()
self.commit()
self.updateInitSite()
......
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