diff options
author | Jon Wayne Parrott <jonwayne@google.com> | 2016-07-27 13:53:27 -0700 |
---|---|---|
committer | Jon Wayne Parrott <jonwayne@google.com> | 2016-07-27 13:53:27 -0700 |
commit | 216c7c9407ffdc320a9225cee3b2315d086a2327 (patch) | |
tree | 8b07f136ad4f496caaef5feeeba4d69adbdc789f /tests | |
parent | bb2386ea51b330765b7c44461465bdceb0be09b4 (diff) | |
download | oauth2client-216c7c9407ffdc320a9225cee3b2315d086a2327.tar.gz |
Add configurable timeout for metadata server.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index 5af0422..5d5d4f5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -399,7 +399,8 @@ class GoogleCredentialsTests(unittest2.TestCase): if server_software == '': http_client_module.HTTPConnection.assert_called_once_with( - client._GCE_METADATA_HOST, timeout=1) + client._GCE_METADATA_HOST, + timeout=client.GCE_METADATA_TIMEOUT) connection.getresponse.assert_called_once_with() # Remaining calls are not "getresponse" headers = { |