From 70d10e1ebaa32ae3d960dfea277643cf31c1d6d4 Mon Sep 17 00:00:00 2001 From: Eric Uldall Date: Fri, 14 Apr 2017 09:19:55 -0700 Subject: [PATCH] updated FQDN's to googleapis.com with a trailing dot (#2214) --- src/index.js | 2 +- test/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 9c51a7af5..f226d3251 100644 --- a/src/index.js +++ b/src/index.js @@ -66,7 +66,7 @@ function PubSub(options) { return new PubSub(options); } - this.defaultBaseUrl_ = 'pubsub.googleapis.com'; + this.defaultBaseUrl_ = 'pubsub.googleapis.com.'; this.determineBaseUrl_(); var config = { diff --git a/test/index.js b/test/index.js index c5ad67e6e..6eabd31dd 100644 --- a/test/index.js +++ b/test/index.js @@ -149,7 +149,7 @@ describe('PubSub', function() { var calledWith = pubsub.calledWith_[0]; - var baseUrl = 'pubsub.googleapis.com'; + var baseUrl = 'pubsub.googleapis.com.'; assert.strictEqual(calledWith.baseUrl, baseUrl); assert.strictEqual(calledWith.service, 'pubsub'); assert.strictEqual(calledWith.apiVersion, 'v1'); @@ -161,7 +161,7 @@ describe('PubSub', function() { }); it('should set the defaultBaseUrl_', function() { - assert.strictEqual(pubsub.defaultBaseUrl_, 'pubsub.googleapis.com'); + assert.strictEqual(pubsub.defaultBaseUrl_, 'pubsub.googleapis.com.'); }); it('should use the PUBSUB_EMULATOR_HOST env var', function() {