mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Fix tests
This commit is contained in:
parent
539cf640d8
commit
907207a140
@ -91,9 +91,9 @@ def test_reserve_tcp_port_already_used():
|
|||||||
def test_reserve_udp_port():
|
def test_reserve_udp_port():
|
||||||
pm = PortManager()
|
pm = PortManager()
|
||||||
project = Project(project_id=str(uuid.uuid4()))
|
project = Project(project_id=str(uuid.uuid4()))
|
||||||
pm.reserve_udp_port(10000, project)
|
pm.reserve_udp_port(20000, project)
|
||||||
with pytest.raises(aiohttp.web.HTTPConflict):
|
with pytest.raises(aiohttp.web.HTTPConflict):
|
||||||
pm.reserve_udp_port(10000, project)
|
pm.reserve_udp_port(20000, project)
|
||||||
|
|
||||||
|
|
||||||
def test_reserve_udp_port_outside_range():
|
def test_reserve_udp_port_outside_range():
|
||||||
@ -106,9 +106,9 @@ def test_reserve_udp_port_outside_range():
|
|||||||
def test_release_udp_port():
|
def test_release_udp_port():
|
||||||
pm = PortManager()
|
pm = PortManager()
|
||||||
project = Project(project_id=str(uuid.uuid4()))
|
project = Project(project_id=str(uuid.uuid4()))
|
||||||
pm.reserve_udp_port(10000, project)
|
pm.reserve_udp_port(20000, project)
|
||||||
pm.release_udp_port(10000, project)
|
pm.release_udp_port(20000, project)
|
||||||
pm.reserve_udp_port(10000, project)
|
pm.reserve_udp_port(20000, project)
|
||||||
|
|
||||||
|
|
||||||
def test_find_unused_port():
|
def test_find_unused_port():
|
||||||
|
Loading…
Reference in New Issue
Block a user