We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79d8e00 commit fcdc10cCopy full SHA for fcdc10c
bigquery/tests/unit/test__http.py
@@ -19,6 +19,12 @@
19
20
21
class TestConnection(unittest.TestCase):
22
+ @staticmethod
23
+ def _get_default_timeout():
24
+ from google.cloud.bigquery._http import _http
25
+
26
+ return _http._DEFAULT_TIMEOUT
27
28
@staticmethod
29
def _get_target_class():
30
from google.cloud.bigquery._http import Connection
@@ -79,7 +85,7 @@ def test_user_agent(self):
79
85
headers=expected_headers,
80
86
method="GET",
81
87
url=expected_uri,
82
- timeout=None,
88
+ timeout=self._get_default_timeout(),
83
89
)
84
90
self.assertIn("my-application/1.2.3", conn.user_agent)
91
@@ -112,5 +118,5 @@ def test_extra_headers_replace(self):
112
118
113
119
114
120
115
121
116
122
0 commit comments