Skip to content

Commit 6a1cd73

Browse files
TEMP FIX
1 parent 1c04f2e commit 6a1cd73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/aio/test_ocsp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,10 @@ async def test_concurrent_ocsp_requests(tmpdir, session_manager):
494494
SnowflakeOCSP.clear_cache() # reset the memory cache
495495
SFOCSP(ocsp_response_cache_uri="file://" + cache_file_name)
496496

497-
target_hosts = TARGET_HOSTS * 5
497+
# Windows has lower concurrent connection limits than Linux/Mac
498+
# Use smaller multiplier to avoid WinError 64: network name is no longer available caused by RuntimeError('Event loop is closed')
499+
multiplier = 2 if sys.platform == "win32" else 5
500+
target_hosts = TARGET_HOSTS * multiplier
498501
await asyncio.gather(
499502
*[
500503
_validate_certs_using_ocsp(hostname, cache_file_name, session_manager)

0 commit comments

Comments
 (0)