Skip to content

Commit 36bbc9b

Browse files
test: increase number of tries to find tz not near midnight (ietf-tools#4756)
1 parent 611d732 commit 36bbc9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/timezone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def timezone_not_near_midnight():
9696
right_now = timezone.now().astimezone(ZoneInfo(tzname))
9797
# Avoid the remote possibility of an infinite loop (might come up
9898
# if there is a problem with the time zone library)
99-
tries_left = 20
99+
tries_left = 50
100100
while right_now.hour < 1 or right_now.hour >= 23:
101101
tzname = random.choice(timezone_options)
102102
right_now = right_now.astimezone(ZoneInfo(tzname))

0 commit comments

Comments
 (0)