Skip to content

Commit c37ba09

Browse files
committed
pr comment
1 parent bdf1034 commit c37ba09

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

TESTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,11 @@ $ gcloud beta emulators pubsub env-init
162162
```
163163

164164
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.
167165
```java
168166
ChannelProvider channelProvider =
169167
// SubscriptionAdminSettings works too.
170168
TopicAdminSettings.defaultChannelProviderBuilder()
171-
.setServiceAddress(host)
172-
.setPort(port)
169+
.setEndpoint(System.getenv("PUBSUB_EMULATOR_HOST"))
173170
.setCredentialsProvider(
174171
FixedCredentialsProvider.create(NoCredentials.getInstance()))
175172
.build();

0 commit comments

Comments
 (0)