Skip to content

Commit 93f6fd6

Browse files
authored
Add timeout to requests (#1321)
1 parent 4a2eb93 commit 93f6fd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,14 @@ def test_proxy_context_manager(self) -> None:
381381
'http': 'http://127.0.0.1:8888',
382382
'https': 'http://127.0.0.1:8888',
383383
},
384+
timeout=60,
384385
)
385386
self.assertEqual(response.status_code, 200)
386387
response = requests.get(
387388
'https://httpbin.org/get', proxies={
388389
'http': 'http://127.0.0.1:8888',
389390
'https': 'http://127.0.0.1:8888',
390391
},
392+
timeout=60,
391393
)
392394
self.assertEqual(response.status_code, 200)

0 commit comments

Comments
 (0)