Commit d0e006f0 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix r2609: Follow the previous way to initialize app's attributes

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2633 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0e0ceb7f
...@@ -72,7 +72,7 @@ class Application(object): ...@@ -72,7 +72,7 @@ class Application(object):
# operation related data # operation related data
self.event_queue = None self.event_queue = None
self.event_queue_dict = {} self.event_queue_dict = None
self.operational = False self.operational = False
# ready is True when operational and got all informations # ready is True when operational and got all informations
......
...@@ -45,7 +45,7 @@ class StorageClientHandlerTests(NeoUnitTestBase): ...@@ -45,7 +45,7 @@ class StorageClientHandlerTests(NeoUnitTestBase):
self.app.store_lock_dict = {} self.app.store_lock_dict = {}
self.app.load_lock_dict = {} self.app.load_lock_dict = {}
self.app.event_queue = deque() self.app.event_queue = deque()
self.app.event_queue_keys = set() self.app.event_queue_dict = {}
self.app.tm = Mock({'__contains__': True}) self.app.tm = Mock({'__contains__': True})
# handler # handler
self.operation = ClientOperationHandler(self.app) self.operation = ClientOperationHandler(self.app)
......
...@@ -34,7 +34,7 @@ class StorageAppTests(NeoUnitTestBase): ...@@ -34,7 +34,7 @@ class StorageAppTests(NeoUnitTestBase):
config = self.getStorageConfiguration(master_number=1) config = self.getStorageConfiguration(master_number=1)
self.app = Application(config) self.app = Application(config)
self.app.event_queue = deque() self.app.event_queue = deque()
self.app.event_queue_keys = set() self.app.event_queue_dict = {}
def test_01_loadPartitionTable(self): def test_01_loadPartitionTable(self):
self.app.dm = Mock({ self.app.dm = Mock({
......
...@@ -43,7 +43,7 @@ class StorageStorageHandlerTests(NeoUnitTestBase): ...@@ -43,7 +43,7 @@ class StorageStorageHandlerTests(NeoUnitTestBase):
self.app.store_lock_dict = {} self.app.store_lock_dict = {}
self.app.load_lock_dict = {} self.app.load_lock_dict = {}
self.app.event_queue = deque() self.app.event_queue = deque()
self.app.event_queue_keys = set() self.app.event_queue_dict = {}
# handler # handler
self.operation = StorageOperationHandler(self.app) self.operation = StorageOperationHandler(self.app)
# set pmn # set pmn
......
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