diff --git a/6-pubsub/test/worker.test.js b/6-pubsub/test/worker.test.js index 4906c8854e..fa7cd511fb 100644 --- a/6-pubsub/test/worker.test.js +++ b/6-pubsub/test/worker.test.js @@ -72,9 +72,12 @@ describe('worker.js', function () { var stubs = { './lib/logging': loggingStub, '@google/cloud-trace': { - start: sinon.stub() + start: sinon.stub(), + '@noCallThru': true }, - '@google/cloud-debug': {} + '@google/cloud-debug': { + '@noCallThru': true + } }; stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = { read: function (bookId, cb) { diff --git a/7-gce/test/worker.test.js b/7-gce/test/worker.test.js index 4906c8854e..fa7cd511fb 100644 --- a/7-gce/test/worker.test.js +++ b/7-gce/test/worker.test.js @@ -72,9 +72,12 @@ describe('worker.js', function () { var stubs = { './lib/logging': loggingStub, '@google/cloud-trace': { - start: sinon.stub() + start: sinon.stub(), + '@noCallThru': true }, - '@google/cloud-debug': {} + '@google/cloud-debug': { + '@noCallThru': true + } }; stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = { read: function (bookId, cb) {