Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Merged
Prev Previous commit
Next Next commit
add tests for timeout errors
  • Loading branch information
tswast committed Aug 24, 2021
commit 24d1049d4ca28a3bc619b45b5be04dfcac10d5cf
4 changes: 4 additions & 0 deletions tests/unit/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def test_w_unstructured_requests_chunked_encoding_error(self):
exc = requests.exceptions.ChunkedEncodingError()
self.assertTrue(self._call_fut(exc))

def test_w_unstructured_requests_timeout(self):
exc = requests.exceptions.ReadTimeout()
self.assertTrue(self._call_fut(exc))

def test_w_auth_transporterror(self):
from google.auth.exceptions import TransportError

Expand Down