Skip to content

Commit 3247271

Browse files
committed
Fix stubs in worker test.
1 parent 3b9fde5 commit 3247271

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

6-pubsub/test/worker.test.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ describe('worker.js', function () {
7272
var stubs = {
7373
'./lib/logging': loggingStub,
7474
'@google/cloud-trace': {
75-
start: sinon.stub()
75+
start: sinon.stub(),
76+
'@noCallThru': true
7677
},
77-
'@google/cloud-debug': {}
78+
'@google/cloud-debug': {
79+
'@noCallThru': true
80+
}
7881
};
7982
stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = {
8083
read: function (bookId, cb) {

7-gce/test/worker.test.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ describe('worker.js', function () {
7272
var stubs = {
7373
'./lib/logging': loggingStub,
7474
'@google/cloud-trace': {
75-
start: sinon.stub()
75+
start: sinon.stub(),
76+
'@noCallThru': true
7677
},
77-
'@google/cloud-debug': {}
78+
'@google/cloud-debug': {
79+
'@noCallThru': true
80+
}
7881
};
7982
stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = {
8083
read: function (bookId, cb) {

0 commit comments

Comments
 (0)