File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
21
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
+
22
28
@staticmethod
23
29
def _get_target_class ():
24
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 )
85
91
@@ -112,5 +118,5 @@ def test_extra_headers_replace(self):
112
118
headers = expected_headers ,
113
119
method = "GET" ,
114
120
url = expected_uri ,
115
- timeout = None ,
121
+ timeout = self . _get_default_timeout () ,
116
122
)
You can’t perform that action at this time.
0 commit comments