Skip to content

Commit

Permalink
[tests]: Fix tests/node/test_server.py::test_auto_reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jan 16, 2017
1 parent f7f65b3 commit 9033b6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/core/test_bridge.py
Expand Up @@ -12,7 +12,7 @@


if pytest.PLATFORM == "win32":
pytest.skip("Unsupported Platform")
pytest.mark.skip("Unsupported Platform")


pytest.importorskip("multiprocessing")
Expand Down
8 changes: 4 additions & 4 deletions tests/node/test_server.py
Expand Up @@ -6,7 +6,8 @@
from time import sleep


from pytest import PLATFORM, skip, fixture
import pytest
from pytest import PLATFORM, fixture


from circuits import Event, Component
Expand All @@ -16,7 +17,7 @@


if PLATFORM == 'win32':
skip('Broken on Windows')
pytest.mark.skip('Broken on Windows')


class return_value(Event):
Expand Down Expand Up @@ -61,12 +62,11 @@ def test_auto_reconnect(app, watcher, manager):
node = Node().register(client)
chan = node.add('client1', *app.bind, reconnect_delay=1, connect_timeout=1)
assert watcher.wait('connected', channel=chan)
watcher.clear()

# close server
app.fire(close(), app.channel)
assert watcher.wait('closed', channel=app.channel)
watcher.clear()

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

client.unregister()
Expand Down

0 comments on commit 9033b6d

Please sign in to comment.