mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 07:48:10 +00:00
Correctly process node.updated event on controller
This commit is contained in:
@ -152,7 +152,7 @@ def test_connectNotification(compute, async_run):
|
||||
call += 1
|
||||
if call == 1:
|
||||
response = MagicMock()
|
||||
response.data = '{"action": "test", "event": {"a": 1}, "project_id": "42"}'
|
||||
response.data = '{"action": "test", "event": {"a": 1}}'
|
||||
response.tp = aiohttp.MsgType.text
|
||||
return response
|
||||
else:
|
||||
@ -166,7 +166,7 @@ def test_connectNotification(compute, async_run):
|
||||
ws_mock.receive = receive
|
||||
async_run(compute._connect_notification())
|
||||
|
||||
compute._controller.notification.emit.assert_called_with('test', {'a': 1}, compute_id=compute.id, project_id='42')
|
||||
compute._controller.notification.dispatch.assert_called_with('test', {'a': 1}, compute_id=compute.id)
|
||||
assert compute._connected is False
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user