1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Merge pull request #1197 from GNS3/fix-win-tests

fix passing tests on Windows
This commit is contained in:
Jeremy Grossmann 2017-10-16 19:44:22 +08:00 committed by GitHub
commit 1f4b87ae9c

View File

@ -286,7 +286,8 @@ def test_duplicate_vpcs(async_run, vpcs, project):
destination_node = async_run(vpcs.create_node("PC-2", project.id, destination_node_id, console=2223)) destination_node = async_run(vpcs.create_node("PC-2", project.id, destination_node_id, console=2223))
async_run(vpcs.duplicate_node(source_node_id, destination_node_id)) async_run(vpcs.duplicate_node(source_node_id, destination_node_id))
with open(os.path.join(destination_node.working_dir, "startup.vpc")) as f: with open(os.path.join(destination_node.working_dir, "startup.vpc")) as f:
assert f.read() == "set pcname PC-2\nip dhcp\n" startup = f.read().strip()
assert startup == "set pcname PC-2\nip dhcp\n".strip()
def test_duplicate_ethernet_switch(async_run, project): def test_duplicate_ethernet_switch(async_run, project):