Skip to content

Commit

Permalink
Add timeout to requests (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh authored Mar 14, 2023
1 parent 4a2eb93 commit 93f6fd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,14 @@ def test_proxy_context_manager(self) -> None:
'http': 'http://127.0.0.1:8888',
'https': 'http://127.0.0.1:8888',
},
timeout=60,
)
self.assertEqual(response.status_code, 200)
response = requests.get(
'https://httpbin.org/get', proxies={
'http': 'http://127.0.0.1:8888',
'https': 'http://127.0.0.1:8888',
},
timeout=60,
)
self.assertEqual(response.status_code, 200)

0 comments on commit 93f6fd6

Please sign in to comment.