[Erp5-report] r43448 jm - /erp5/trunk/products/ERP5/tests/testInvalidationBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 17 19:37:40 CET 2011
Author: jm
Date: Thu Feb 17 19:37:40 2011
New Revision: 43448
URL: http://svn.erp5.org?rev=43448&view=rev
Log:
Fix testLateInvalidationFromZEO for Zope 2.12
Modified:
erp5/trunk/products/ERP5/tests/testInvalidationBug.py
Modified: erp5/trunk/products/ERP5/tests/testInvalidationBug.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvalidationBug.py?rev=43448&r1=43447&r2=43448&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvalidationBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvalidationBug.py [utf8] Thu Feb 17 19:37:40 2011
@@ -106,17 +106,17 @@ class TestInvalidationBug(ERP5TypeTestCa
### Prepare unit test, to minimize amount of work during critical section
## url to create some content using another zope
- new_content_url = "http://ERP5TypeTestCase:@%s%s/newContent" % (
+ new_content_url = "http://ERP5TypeTestCase:@%s%s/Folder_create" % (
node_list[0], self.portal.organisation_module.getPath())
## prepare freeze/unfreeze of ZEO storage
- from asyncore import socket_map
zeo_connection = storage._connection
+ socket_map = zeo_connection._map
freeze_lock = threading.Lock()
freeze_lock.acquire()
def unfreezeStorage():
socket_map[zeo_connection.fileno()] = zeo_connection
# wake up asyncore loop to take the new socket into account
- zeo_connection._pull_trigger()
+ zeo_connection.trigger.pull_trigger()
# link to ZEO will be unfrozen 1 second after we read 'message' table
unfreeze_timer = threading.Timer(1, unfreezeStorage)
unfreeze_timer.setDaemon(True)
More information about the Erp5-report
mailing list