Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
retry all timeout errors
  • Loading branch information
tswast committed Aug 24, 2021
commit 725de7dd114e2eb47d817c5676ecfff5006285e4
2 changes: 1 addition & 1 deletion google/cloud/bigquery/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
exceptions.BadGateway,
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ConnectionError,
requests.exceptions.ReadTimeout,
requests.exceptions.Timeout,
auth_exceptions.TransportError,
)

Expand Down
10 changes: 9 additions & 1 deletion tests/unit/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,18 @@ 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):
def test_w_unstructured_requests_connecttimeout(self):
exc = requests.exceptions.ConnectTimeout()
self.assertTrue(self._call_fut(exc))

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

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

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

Expand Down