From 5898b86dfc9d8495039e2950fae580bca5be01c7 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 27 Jun 2016 12:11:18 +0200 Subject: [PATCH] Fix docker test for no free interface --- tests/modules/docker/test_docker_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/docker/test_docker_vm.py b/tests/modules/docker/test_docker_vm.py index e3217413..06778576 100644 --- a/tests/modules/docker/test_docker_vm.py +++ b/tests/modules/docker/test_docker_vm.py @@ -740,7 +740,7 @@ def test_add_ubridge_connection_no_free_interface(loop, vm): with pytest.raises(DockerError): # We create fake ethernet interfaces for docker - interfaces = ["veth-gns3-ext{}".format(index) for index in range(128)] + interfaces = ["veth-gns3-ext{}".format(index) for index in range(4096)] with patch("psutil.net_if_addrs", return_value=interfaces): loop.run_until_complete(asyncio.async(vm._add_ubridge_connection(nio, 0, 42)))