Commit 4746cdb5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

configure distributed ram cache for memcached backend tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27600 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e0eaf08
...@@ -357,10 +357,11 @@ class TestSelectionToolMemcachedStorage(TestSelectionTool): ...@@ -357,10 +357,11 @@ class TestSelectionToolMemcachedStorage(TestSelectionTool):
# create a Memcached Plugin # create a Memcached Plugin
memcached_tool = self.getPortal().portal_memcached memcached_tool = self.getPortal().portal_memcached
if getattr(memcached_tool, 'default_memcached_plugin', None) is None: if getattr(memcached_tool, 'default_memcached_plugin', None) is None:
memcached_tool.newContent(portal_type='Memcached Plugin', memcached_tool.newContent(id='default_memcached_plugin',
portal_type='Memcached Plugin',
int_index=0, int_index=0,
url_string='127.0.0.1:11211') url_string='127.0.0.1:11211')
self.portal.portal_selections.setStorage('Memcached Tool') self.portal.portal_selections.setStorage('portal_memcached/default_memcached_plugin')
TestSelectionTool.afterSetUp(self) TestSelectionTool.afterSetUp(self)
def testGetSelectionContainer(self, quiet=quiet, run=run_all_test): def testGetSelectionContainer(self, quiet=quiet, run=run_all_test):
......
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