Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tests]: Fixed test_auto_reconnect node test reliability
  • Loading branch information
prologic committed Jul 24, 2016
1 parent dd0f3fa commit 88856db
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tests/node/test_server.py
Expand Up @@ -61,21 +61,9 @@ def test_auto_reconnect(app, watcher, manager):
# close server
app.fire(close(), app.channel)
assert watcher.wait('closed', channel=app.channel)
watcher.clear()

app.unregister()
assert watcher.wait('unregistered', channel=app.channel)

for _ in range(5):
watcher.clear()
assert watcher.wait('connect', channel=chan)
assert watcher.wait('unreachable', channel=chan)

# open server
app = Node(port=app.bind[1], server_ip=app.bind[0])
app.register(manager)

assert watcher.wait('registered', channel=app.channel)
assert watcher.wait('connected_to', channel=app.channel)
assert watcher.wait('connected', channel=chan)

client.unregister()

Expand Down

0 comments on commit 88856db

Please sign in to comment.