Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
6ddb3bf6
Commit
6ddb3bf6
authored
May 23, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
749d3c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neo/lib/connector.py
neo/lib/connector.py
+4
-4
No files found.
neo/lib/connector.py
View file @
6ddb3bf6
...
...
@@ -90,10 +90,10 @@ class SocketConnector(object):
raise
ConnectorException
# Threaded tests monkey-patch the following 2 operations.
_connect
=
lambda
self
,
addr
:
self
.
socket
.
connect
(
addr
)
_bind
=
lambda
self
,
addr
:
self
.
socket
.
bind
(
addr
)
_connect
=
lambda
self
,
addr
:
self
.
socket
.
connect
(
addr
)
# XXX test: -> lonet.dial
_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
addr
=
self
.
addr
try
:
...
...
@@ -117,7 +117,7 @@ class SocketConnector(object):
self
.
_error
(
'connect'
,
e
)
return
True
def
makeListeningConnection
(
self
):
def
makeListeningConnection
(
self
):
# XXX test: -> lonet.listen()
assert
self
.
is_closed
is
None
self
.
is_closed
=
False
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment