Commit 6ddb3bf6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 749d3c85
...@@ -90,10 +90,10 @@ class SocketConnector(object): ...@@ -90,10 +90,10 @@ class SocketConnector(object):
raise ConnectorException raise ConnectorException
# Threaded tests monkey-patch the following 2 operations. # Threaded tests monkey-patch the following 2 operations.
_connect = lambda self, addr: self.socket.connect(addr) _connect = lambda self, addr: self.socket.connect(addr) # XXX test: -> lonet.dial
_bind = lambda self, addr: self.socket.bind(addr) _bind = lambda self, addr: self.socket.bind(addr) # XXX test: ~> lonet.listen
def makeClientConnection(self): def makeClientConnection(self): # XXX test: -> lonet.dial
assert self.is_closed is None assert self.is_closed is None
addr = self.addr addr = self.addr
try: try:
...@@ -117,7 +117,7 @@ class SocketConnector(object): ...@@ -117,7 +117,7 @@ class SocketConnector(object):
self._error('connect', e) self._error('connect', e)
return True return True
def makeListeningConnection(self): def makeListeningConnection(self): # XXX test: -> lonet.listen()
assert self.is_closed is None assert self.is_closed is None
self.is_closed = False self.is_closed = False
try: try:
......
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