This repository was archived by the owner on Mar 9, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,15 +135,15 @@ def test_init_w_api_endpoint(creds):
135135
136136 assert (client ._transport .grpc_channel ._channel .target ()).decode (
137137 "utf-8"
138- ) == "testendpoint.google.com:443"
138+ ) == "dns:///testendpoint.google.com:443" if grpc . __version__ >= "1.63.0" else " testendpoint.google.com:443"
139139
140140
141141def test_init_w_empty_client_options (creds ):
142142 client = publisher .Client (client_options = {}, credentials = creds )
143143
144144 assert (client ._transport .grpc_channel ._channel .target ()).decode (
145145 "utf-8"
146- ) == publisher_client . PublisherClient . SERVICE_ADDRESS
146+ ) == () "dns:///pubsub.googleapis.com:443"
147147
148148
149149def test_init_client_options_pass_through ():
@@ -182,7 +182,7 @@ def test_init_emulator(monkeypatch):
182182 # Sadly, there seems to be no good way to do this without poking at
183183 # the private API of gRPC.
184184 channel = client ._transport .publish ._channel
185- assert channel .target ().decode ("utf8" ) == "/foo/bar:123"
185+ assert channel .target ().decode ("utf8" ) == "dns:/// /foo/bar:123"
186186
187187
188188def test_message_ordering_enabled (creds ):
Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ def test_init_w_api_endpoint(creds):
6868
6969 assert (client ._transport .grpc_channel ._channel .target ()).decode (
7070 "utf-8"
71- ) == "testendpoint.google.com:443"
71+ ) == "dns:/// testendpoint.google.com:443"
7272
7373
7474def test_init_w_empty_client_options (creds ):
7575 client = subscriber .Client (client_options = {}, credentials = creds )
7676
7777 assert (client ._transport .grpc_channel ._channel .target ()).decode (
7878 "utf-8"
79- ) == subscriber_client . SubscriberClient . SERVICE_ADDRESS
79+ ) == "dns:///pubsub.googleapis.com:443"
8080
8181
8282def test_init_client_options_pass_through ():
@@ -115,7 +115,7 @@ def test_init_emulator(monkeypatch):
115115 # Sadly, there seems to be no good way to do this without poking at
116116 # the private API of gRPC.
117117 channel = client ._transport .pull ._channel
118- assert channel .target ().decode ("utf8" ) == "/baz/bacon:123"
118+ assert channel .target ().decode ("utf8" ) == "dns:/// /baz/bacon:123"
119119
120120
121121def test_class_method_factory ():
You can’t perform that action at this time.
0 commit comments