diff options
Diffstat (limited to 'src/node/test/math_client_test.js')
-rw-r--r-- | src/node/test/math_client_test.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node/test/math_client_test.js b/src/node/test/math_client_test.js index f2751857ff..ef01870a4c 100644 --- a/src/node/test/math_client_test.js +++ b/src/node/test/math_client_test.js @@ -51,9 +51,11 @@ var server = require('../examples/math_server.js'); describe('Math client', function() { before(function(done) { - var port_num = server.bind('0.0.0.0:0'); + var port_num = server.bind('0.0.0.0:0', + grpc.ServerCredentials.createInsecure()); server.start(); - math_client = new math.Math('localhost:' + port_num); + math_client = new math.Math('localhost:' + port_num, + grpc.Credentials.createInsecure()); done(); }); after(function() { |