Skip to content

Commit 024bc4e

Browse files
committed
Add comment
1 parent 915c33f commit 024bc4e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

library/sources/PubSub.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ t.test("it works", async () => {
88
agent.start([new PubSubWrapper()]);
99

1010
process.env.PUBSUB_EMULATOR_HOST = "127.0.0.1:8085";
11+
// Do not try to ping the Google Cloud Platform (GCP) metadata server
12+
// This causes the tap tests to not exit cleanly, if a HTTP proxy is used
13+
// https://github.com/googleapis/google-cloud-node-core/blob/caf493f6e55cf8a6778ddf46d8d02f2013d7a1be/packages/gcp-metadata/README.md#environment-variables
1114
process.env.METADATA_SERVER_DETECTION = "none";
1215

1316
const projectId = "sample-project";

0 commit comments

Comments
 (0)