Skip to content

Commit

Permalink
fix(test): instantiate PubSub using new (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored Sep 19, 2018
1 parent 4658d4c commit 8b036c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/system-test/notifications.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'use strict';

const path = require(`path`);
const pubsub = require('@google-cloud/pubsub')();
const PubSub = require('@google-cloud/pubsub');
const {Storage} = require(`@google-cloud/storage`);
const test = require(`ava`);
const tools = require(`@google-cloud/nodejs-repo-tools`);
Expand All @@ -29,6 +29,7 @@ const bucket = storage.bucket(bucketName);
const notificationId = '1';
const notification = bucket.notification(notificationId);
const topicName = `nodejs-storage-samples-${uuid.v4()}`;
const pubsub = new PubSub();
const topic = pubsub.topic(topicName);
const cmd = `node notifications.js`;

Expand Down

0 comments on commit 8b036c0

Please sign in to comment.