| Index: infra_libs/ts_mon/common/test/monitors_test.py
|
| diff --git a/infra_libs/ts_mon/common/test/monitors_test.py b/infra_libs/ts_mon/common/test/monitors_test.py
|
| index 69ea8badb10f275451421a826fd9af31cf40887e..9943374af903991940026910d587a56a1848ee45 100644
|
| --- a/infra_libs/ts_mon/common/test/monitors_test.py
|
| +++ b/infra_libs/ts_mon/common/test/monitors_test.py
|
| @@ -82,7 +82,7 @@
|
|
|
| @mock.patch('infra_libs.ts_mon.common.monitors.PubSubMonitor.'
|
| '_load_credentials', autospec=True)
|
| - @mock.patch('googleapiclient.discovery.build', autospec=True)
|
| + @mock.patch('apiclient.discovery.build', autospec=True)
|
| def test_send(self, _discovery, _load_creds):
|
| mon = monitors.PubSubMonitor('/path/to/creds.p8.json', 'myproject',
|
| 'mytopic')
|
| @@ -111,7 +111,7 @@
|
|
|
| @mock.patch('infra_libs.ts_mon.common.monitors.PubSubMonitor.'
|
| '_load_credentials', autospec=True)
|
| - @mock.patch('googleapiclient.discovery.build', autospec=True)
|
| + @mock.patch('apiclient.discovery.build', autospec=True)
|
| def test_send_uninitialized(self, discovery, _load_creds):
|
| """Test initialization retry logic, and also un-instrumented http path."""
|
| discovery.side_effect = EnvironmentError() # Fail initialization.
|
|
|