aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/examples/perf_test.js
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-08-18 16:11:09 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-08-18 16:11:09 -0700
commit7fc37a23856604259a0b048e0df00ef3065a58d8 (patch)
tree9e3b7622f474d15a43b753912582234b81588e32 /src/node/examples/perf_test.js
parentbeac88ca56f4710e86668f2cbbd80e02e0607f9c (diff)
parent7ff63f6abad6c49a7b88b036c54075a03433457c (diff)
Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding
Diffstat (limited to 'src/node/examples/perf_test.js')
-rw-r--r--src/node/examples/perf_test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/examples/perf_test.js b/src/node/examples/perf_test.js
index 0f38725f72..ba8fbf88d2 100644
--- a/src/node/examples/perf_test.js
+++ b/src/node/examples/perf_test.js
@@ -40,7 +40,7 @@ var interop_server = require('../interop/interop_server.js');
function runTest(iterations, callback) {
var testServer = interop_server.getServer(0, false);
- testServer.server.listen();
+ testServer.server.start();
var client = new testProto.TestService('localhost:' + testServer.port,
grpc.Credentials.createInsecure());
@@ -63,7 +63,7 @@ function runTest(iterations, callback) {
var timeDiff = process.hrtime(startTime);
intervals[i] = timeDiff[0] * 1000000 + timeDiff[1] / 1000;
next(i+1);
- }, {}, deadline);
+ }, {}, {deadline: deadline});
}
}
next(0);