Commit 539c79ad authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: call setUrlString for memcached plugin only when it is required.

this commit prevents generating needless activities at the beginning of tests.
parent d3d99b04
...@@ -915,7 +915,8 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin): ...@@ -915,7 +915,8 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
portal_memcached = self.portal.portal_memcached portal_memcached = self.portal.portal_memcached
connection_dict = _getVolatileMemcachedServerDict() connection_dict = _getVolatileMemcachedServerDict()
url_string = '%(hostname)s:%(port)s' % connection_dict url_string = '%(hostname)s:%(port)s' % connection_dict
portal_memcached.default_memcached_plugin.setUrlString(url_string) if portal_memcached.default_memcached_plugin.getUrlString() != url_string:
portal_memcached.default_memcached_plugin.setUrlString(url_string)
def _recreateCatalog(self, quiet=0): def _recreateCatalog(self, quiet=0):
"""Clear activities and catalog and recatalog everything. """Clear activities and catalog and recatalog everything.
......
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