We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf1034 commit c37ba09Copy full SHA for c37ba09
1 file changed
TESTING.md
@@ -162,14 +162,11 @@ $ gcloud beta emulators pubsub env-init
162
```
163
164
3. Point your client to the emulator.
165
-The code below assumes that you have set the `host` and `port`
166
-to the host and port the emulator is on.
167
```java
168
ChannelProvider channelProvider =
169
// SubscriptionAdminSettings works too.
170
TopicAdminSettings.defaultChannelProviderBuilder()
171
- .setServiceAddress(host)
172
- .setPort(port)
+ .setEndpoint(System.getenv("PUBSUB_EMULATOR_HOST"))
173
.setCredentialsProvider(
174
FixedCredentialsProvider.create(NoCredentials.getInstance()))
175
.build();
0 commit comments