Skip to content

Commit

Permalink
Try to fix test - not sure why this should be neccessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwt committed Dec 12, 2018
1 parent 3c9151d commit de5c28f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Products/SiteErrorLog/tests/testSiteErrorLog.py
Expand Up @@ -195,7 +195,9 @@ def setUp(self):
uf = self.app.acl_users
uf.userFolderAddUser('manager', 'manager_pass', ['Manager'], [])

manage_addErrorLog(self.app)
# Why is this neccessary, shouldn't the test get a new app every time?
if not hasattr(self.app, 'error_log'):
manage_addErrorLog(self.app)
self.error_log = self.app.error_log

self.browser = Testing.testbrowser.Browser()
Expand Down

0 comments on commit de5c28f

Please sign in to comment.