1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Do not wait for the server to close when shutting down.

This commit is contained in:
grossmj 2024-05-09 16:37:45 +07:00
parent c076275bd0
commit 3fd44f5260
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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):