From 3fd44f5260eb845055d4aadbf1f82bb04bdc8dc3 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 9 May 2024 16:37:45 +0700 Subject: [PATCH] Do not wait for the server to close when shutting down. --- gns3server/web/web_server.py | 2 +- tests/controller/gns3vm/test_remote_gns3_vm.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index a8cb7904..3a37ed60 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -118,7 +118,7 @@ class WebServer: if self._server: self._server.close() - await self._server.wait_closed() + # await self._server.wait_closed() if self._app: await self._app.shutdown() if self._handler: diff --git a/tests/controller/gns3vm/test_remote_gns3_vm.py b/tests/controller/gns3vm/test_remote_gns3_vm.py index 1d1fc62f..50a470cc 100644 --- a/tests/controller/gns3vm/test_remote_gns3_vm.py +++ b/tests/controller/gns3vm/test_remote_gns3_vm.py @@ -63,7 +63,8 @@ async def test_start_invalid_vm(loop, gns3vm, controller): host="r1.local", port=8484, user="hello", - password="world") + password="world", + connect=False) gns3vm.vmname = "R2" with pytest.raises(GNS3VMError):