Skip to content

Commit 15242db

Browse files
authored
Don't hardcode endpoint URL in grpc_gcp unit tests. (#5893)
That bit of configuration is a class attribute, and may be changed, e.g. to point at non-production endpoints.
1 parent a152aa8 commit 15242db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-cloud-spanner/tests/unit/gapic/v1/test_spanner_client_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def test_client_with_grpc_gcp_channel(self,
570570
api_config,
571571
merge,
572572
auth_default):
573-
spanner_target = 'spanner.googleapis.com:443'
573+
spanner_target = spanner_v1.SpannerClient.SERVICE_ADDRESS
574574
client = spanner_v1.SpannerClient()
575575
merge.assert_called_once_with(mock.ANY, mock.sentinel.api_config)
576576
options = [('grpc_gcp.api_config', mock.sentinel.api_config)]

0 commit comments

Comments
 (0)