From 1724501aa22c7a33009f40f495a14740f398bd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Krienb=C3=BChl?= Date: Fri, 30 Jun 2023 16:01:35 +0200 Subject: [PATCH] Losen some timeouts due to recent changes These timeouts are expected to be a tad higher for the time being. We are working on an upgrade that should help with these numbers. --- resources.py | 3 ++- test_private_network.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources.py b/resources.py index 5a9d325..47b557f 100644 --- a/resources.py +++ b/resources.py @@ -289,7 +289,8 @@ def create_host(self, timeout): # the IPv6 global unicast address we ping a designated IPv6 # address. A DNS lookup is used for it, to not hard-code the # address. The DNS lookup is usually done via IPv4 on the host. - self.ping(self.resolve('api.cloudscale.ch', version=6)[0]) + ipv6_address = self.resolve('api.cloudscale.ch', version=6)[0] + self.ping(ipv6_address, tries=2, wait=5) @with_trigger('server.wait-for-cloud-init') def wait_for_cloud_init(self, host, timeout): diff --git a/test_private_network.py b/test_private_network.py index 471a4ab..b817413 100644 --- a/test_private_network.py +++ b/test_private_network.py @@ -349,7 +349,7 @@ def assert_private_network_is_configured(): assert len(private_addresses) == 1 assert private_addresses[0] in subnet - retry_for(seconds=30).or_fail( + retry_for(seconds=45).or_fail( assert_private_network_is_configured, msg='Failed to configure private network.', )