Option for auto close project when no client listen

And fix websocket not correctly detected has closed.

Ref https://github.com/GNS3/gns3-gui/issues/1331
This commit is contained in:
Julien Duponchelle committed 2016-08-16 17:35:43 +02:00
1 parent 9e81994adc
commit 9694850465
4 files changed
+26

No files matched your search

@@ -146,6 +146,7 @@ def test_notification(http_controller, project, controller, loop):
assert b'"action": "ping"' in response.body
assert b'"cpu_usage_percent"' in response.body
assert b'{"action": "node.created", "event": {"a": "b"}}\n' in response.body
assert project.status == "opened"
def test_notification_invalid_id(http_controller):
@@ -167,6 +168,7 @@ def test_notification_ws(http_controller, controller, project, async_run):
async_run(http_controller.close())
ws.close()
assert project.status == "opened"
def test_export(http_controller, tmpdir, loop, project):