Skip to content

Commit

Permalink
fixup! DebugNode now has an initialize that does io operations, rathe…
Browse files Browse the repository at this point in the history
…r than on the init
  • Loading branch information
lfdversluis committed Jun 3, 2016
1 parent c01fccf commit 806e44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/debugcommunity/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, testclass, dispersy):
self._connection_type = u"unknown"

@inlineCallbacks
def initlialize(self, communityclass=DebugCommunity, c_master_member=None, curve=u"low"):
def initialize(self, communityclass=DebugCommunity, c_master_member=None, curve=u"low"):
self._my_member = yield self._dispersy.get_new_member(curve)
self._my_pub_member = Member(self._dispersy, self._my_member._ec.pub(), self._my_member.database_id)
if c_master_member == None:
Expand Down
6 changes: 3 additions & 3 deletions tests/dispersytestclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ def _create_nodes(amount, store_identity, tunnel, communityclass, autoload_disco

@inlineCallbacks
def _create_node(self, dispersy, community_class, c_master_member):
d = DebugNode(self, dispersy)
yield d.initlialize(community_class, c_master_member)
returnValue(d)
node = DebugNode(self, dispersy)
yield node.initialize(community_class, c_master_member)
returnValue(node)

0 comments on commit 806e44d

Please sign in to comment.