Skip to content

Commit

Permalink
Properly closed node server in test_auto_reconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Jan 17, 2017
1 parent b4f16db commit 91443dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -34,7 +34,7 @@ install:
- pip install -Ur requirements-test.txt
- pip install -Ue .

script: tox
script: tox -v

after_success: coveralls

Expand Down
4 changes: 4 additions & 0 deletions tests/node/test_server.py
Expand Up @@ -82,6 +82,10 @@ def test_auto_reconnect(app, watcher, manager):

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

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

client.unregister()
app.unregister()

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -8,7 +8,7 @@ envlist = docs,py27,py34,py35,py36,pypy
skip_missing_interpreters = True

[testenv]
commands=python setup.py test
commands=py.test {posargs}
deps =
pytest
coveralls
Expand Down

0 comments on commit 91443dc

Please sign in to comment.