From f5b584937b044addf7c9bb10c38220265de5a15c Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 6 Sep 2018 12:42:31 -0400 Subject: [PATCH] Don't hardcode endpoint URL in grpc_gcp unit tests. That bit of configuration is a class attribute, and may be changed, e.g. to point at non-production endpoints. --- spanner/tests/unit/gapic/v1/test_spanner_client_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spanner/tests/unit/gapic/v1/test_spanner_client_v1.py b/spanner/tests/unit/gapic/v1/test_spanner_client_v1.py index bf082de883a6..aa47c9530591 100644 --- a/spanner/tests/unit/gapic/v1/test_spanner_client_v1.py +++ b/spanner/tests/unit/gapic/v1/test_spanner_client_v1.py @@ -570,7 +570,7 @@ def test_client_with_grpc_gcp_channel(self, api_config, merge, auth_default): - spanner_target = 'spanner.googleapis.com:443' + spanner_target = spanner_v1.SpannerClient.SERVICE_ADDRESS client = spanner_v1.SpannerClient() merge.assert_called_once_with(mock.ANY, mock.sentinel.api_config) options = [('grpc_gcp.api_config', mock.sentinel.api_config)]