Fix auto idlepc test.

This commit is contained in:
grossmj 2017-11-23 23:46:22 +07:00
parent 78cf0309a0
commit 745532bf23

View File

@ -541,6 +541,6 @@ def test_autoidlepc(controller, async_run):
controller._computes["local"] = AsyncioMagicMock()
node_mock = AsyncioMagicMock()
with asyncio_patch("gns3server.controller.Project.add_node", return_value=node_mock):
async_run(controller.autoidlepc("local", "c7200", "test.bin"))
async_run(controller.autoidlepc("local", "c7200", "test.bin", 512))
assert node_mock.dynamips_auto_idlepc.called
assert len(controller.projects) == 0