Commit 1775e793 authored by Julien Muchembled's avatar Julien Muchembled

Temporary disable ZServer by default. You can enable it by setting...

Temporary disable ZServer by default. You can enable it by setting start_zserver environment variable to 1.

The reason is that it always set values to portal_activities.distributingNode and portal_activities._nodes.
Before r28043, this didn't happen if self.tic wasn't called, and some projects expects that these variables are unset.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1dd4c72b
...@@ -693,6 +693,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -693,6 +693,7 @@ class ERP5TypeTestCase(PortalTestCase):
from Products import DeadlockDebugger from Products import DeadlockDebugger
except ImportError: except ImportError:
pass pass
if int(os.environ.get('start_zserver', 0)):
from Testing.ZopeTestCase.utils import startZServer from Testing.ZopeTestCase.utils import startZServer
ZopeTestCase._print('Running ZServer on port %i\n' ZopeTestCase._print('Running ZServer on port %i\n'
% startZServer()[1]) % startZServer()[1])
......
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