Skip to content

Commit f905bc7

Browse files
author
rodrigo.nogueira
committed
test: use extreme 5s delay to verify socket leak source
1 parent 85ffe07 commit f905bc7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_proxy_functional.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ def secure_proxy_url(tls_certificate_pem_path: str) -> Iterator[URL]:
9494
# pytest cleanup. A longer delay + multiple gc.collect() passes ensures
9595
# the proxy threads finish cleanup before pytest's unraisableexception
9696
# plugin collects warnings.
97+
# TEMPORARY: Using 5 second delay to test if this is the source of leaks
9798
if os.name == "nt":
9899
import gc
99100
import time
100101

101-
time.sleep(0.5)
102+
time.sleep(5)
102103
gc.collect()
103104
gc.collect()
104105
gc.collect()

0 commit comments

Comments
 (0)