Skip to content

Commit fc42c31

Browse files
committed
add timeout catch
1 parent ecfc1b2 commit fc42c31

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎test/integration/models/linode/test_linode.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,10 @@ def resolve_vpc_ip():
10391039
None,
10401040
)
10411041

1042-
matched_ip = wait_for_condition(5, 120, resolve_vpc_ip)
1042+
try:
1043+
matched_ip = wait_for_condition(5, 120, resolve_vpc_ip)
1044+
except TimeoutError:
1045+
matched_ip = None
10431046

10441047
assert (
10451048
matched_ip is not None
@@ -1070,7 +1073,10 @@ def resolve_vpc_ipv6():
10701073
None,
10711074
)
10721075

1073-
matched_ipv6 = wait_for_condition(5, 120, resolve_vpc_ipv6)
1076+
try:
1077+
matched_ipv6 = wait_for_condition(5, 120, resolve_vpc_ipv6)
1078+
except TimeoutError:
1079+
matched_ipv6 = None
10741080

10751081
assert (
10761082
matched_ipv6

0 commit comments

Comments
 (0)