Skip to content

Commit

Permalink
tests: construct pubsub properly (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored and JustinBeckwith committed Sep 21, 2018
1 parent 0bcf07b commit 140cc83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dlp/system-test/inspect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
const path = require('path');
const test = require('ava');
const tools = require('@google-cloud/nodejs-repo-tools');
const pubsub = require('@google-cloud/pubsub')();
const PubSub = require('@google-cloud/pubsub');
const pubsub = new PubSub();
const uuid = require('uuid');

const cmd = 'node inspect.js';
Expand Down
3 changes: 2 additions & 1 deletion dlp/system-test/risk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
const path = require('path');
const test = require('ava');
const uuid = require('uuid');
const pubsub = require(`@google-cloud/pubsub`)();
const PubSub = require(`@google-cloud/pubsub`);
const pubsub = new PubSub();
const tools = require('@google-cloud/nodejs-repo-tools');

const cmd = 'node risk.js';
Expand Down

0 comments on commit 140cc83

Please sign in to comment.