aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/channel_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/test/channel_test.js')
-rw-r--r--src/node/test/channel_test.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node/test/channel_test.js b/src/node/test/channel_test.js
index 05269f7b6e..7163a5fb5e 100644
--- a/src/node/test/channel_test.js
+++ b/src/node/test/channel_test.js
@@ -104,6 +104,12 @@ describe('channel', function() {
new grpc.Channel('hostname', insecureCreds, {'key' : new Date()});
});
});
+ it('should succeed without the new keyword', function() {
+ assert.doesNotThrow(function() {
+ var channel = grpc.Channel('hostname', insecureCreds);
+ assert(channel instanceof grpc.Channel);
+ });
+ });
});
describe('close', function() {
var channel;
@@ -155,7 +161,6 @@ describe('channel', function() {
deadline.setSeconds(deadline.getSeconds() + 1);
channel.watchConnectivityState(old_state, deadline, function(err, value) {
assert(err);
- console.log('Callback from watchConnectivityState');
done();
});
});