mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Improve VPCS port change test
This commit is contained in:
1 parent
7ce1cf3f84
commit
ef4ecbfb6a
2 files changed
+12
-5
No files matched your search
@@ -138,11 +138,15 @@ def test_get_startup_script(vm):
|
||||
assert vm.startup_script == content
|
||||
|
||||
|
||||
def test_change_console_port(vm, free_console_port):
|
||||
vm.console = free_console_port
|
||||
vm.console = free_console_port + 1
|
||||
assert vm.console == free_console_port
|
||||
PortManager.instance().reserve_console_port(free_console_port + 1)
|
||||
def test_change_console_port(vm, port_manager):
|
||||
port1 = port_manager.get_free_console_port()
|
||||
port2 = port_manager.get_free_console_port()
|
||||
port_manager.release_console_port(port1)
|
||||
port_manager.release_console_port(port2)
|
||||
vm.console = port1
|
||||
vm.console = port2
|
||||
assert vm.console == port2
|
||||
PortManager.instance().reserve_console_port(port1)
|
||||
|
||||
|
||||
def test_change_name(vm, tmpdir):
|
||||
|
||||
Reference in new issue
Block a user