Skip to content

Commit

Permalink
Merge pull request #30 from cloudscale-ch/denis/test-failures
Browse files Browse the repository at this point in the history
Losen some timeouts due to recent changes
  • Loading branch information
href committed Jun 30, 2023
2 parents fb70ce4 + 1724501 commit 02a0d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion test_private_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
)

0 comments on commit 02a0d1c

Please sign in to comment.