Skip to content

Commit a3b9f11

Browse files
authored
SNOW-957010: loosen restrictions on expected call count in timeout test to account for server inconsistencies (#1790)
1 parent 9d7e491 commit a3b9f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/test_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,5 @@ def test_handle_timeout(mockSessionRequest, next_action):
351351

352352
# authenticator should be the only retry mechanism for login requests
353353
# 9 seconds should be enough for authenticator to attempt twice
354-
assert mockSessionRequest.call_count == 2
354+
# however, loosen restrictions to avoid thread scheduling causing failure
355+
assert 1 < mockSessionRequest.call_count < 4

0 commit comments

Comments
 (0)