From 324727111aec1134923a291394ef5683614e245d Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Fri, 20 May 2016 10:46:45 -0700 Subject: [PATCH] Fix stubs in worker test. --- 6-pubsub/test/worker.test.js | 7 +++++-- 7-gce/test/worker.test.js | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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) {