X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest_vcl.py;h=a34bc74549b497263827f1ba4306f3dcf894dbd6;hb=1c7bf5d41737984907e8bad1dc832eb6cb1d6288;hp=cba8c67b5c7df0b919fa9ff320b07207e323d277;hpb=410bcca41c1a3e7c3d4b4c2940120f9b21732d49;p=vpp.git diff --git a/test/test_vcl.py b/test/test_vcl.py index cba8c67b5c7..a34bc74549b 100644 --- a/test/test_vcl.py +++ b/test/test_vcl.py @@ -43,7 +43,7 @@ class VCLTestCase(VppTestCase): self.server_args = [self.server_port] self.server_ipv6_addr = "::1" self.server_ipv6_args = ["-6", self.server_port] - self.timeout = 3 + self.timeout = 10 self.echo_phrase = "Hello, world! Jenny is a friend of mine." super(VCLTestCase, self).__init__(methodName) @@ -68,12 +68,12 @@ class VCLTestCase(VppTestCase): worker_client.join(self.timeout) try: self.validateResults(worker_client, worker_server, self.timeout) - except Exception, error: + except Exception as error: self.fail("Failed with %s" % error) def thru_host_stack_setup(self): self.vapi.session_enable_disable(is_enabled=1) - self.create_loopback_interfaces(range(2)) + self.create_loopback_interfaces(2) table_id = 1 @@ -117,7 +117,7 @@ class VCLTestCase(VppTestCase): def thru_host_stack_ipv6_setup(self): self.vapi.session_enable_disable(is_enabled=1) - self.create_loopback_interfaces(range(2)) + self.create_loopback_interfaces(2) table_id = 1 @@ -182,7 +182,7 @@ class VCLTestCase(VppTestCase): try: self.validateResults(worker_client, worker_server, self.timeout) - except Exception, error: + except Exception as error: self.fail("Failed with %s" % error) def validateResults(self, worker_client, worker_server, timeout):