Replaced remaining references to 'listen' with 'start'

pull/2944/head
murgatroid99 9 years ago
parent 39e18040bd
commit bc15a78a53
  1. 2
      src/node/examples/perf_test.js
  2. 2
      src/node/examples/qps_test.js
  3. 2
      src/node/examples/route_guide_server.js
  4. 2
      src/node/examples/stock_server.js
  5. 2
      src/node/interop/interop_server.js
  6. 4
      src/node/test/server_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());

@ -60,7 +60,7 @@ var interop_server = require('../interop/interop_server.js');
*/
function runTest(concurrent_calls, seconds, 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());

@ -248,7 +248,7 @@ if (require.main === module) {
throw err;
}
feature_list = JSON.parse(data);
routeServer.listen();
routeServer.start();
});
}

@ -81,7 +81,7 @@ stockServer.addProtoService(examples.Stock.service, {
if (require.main === module) {
stockServer.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure());
stockServer.listen();
stockServer.start();
}
module.exports = stockServer;

@ -194,7 +194,7 @@ if (require.main === module) {
});
var server_obj = getServer(argv.port, argv.use_tls === 'true');
console.log('Server attaching to port ' + argv.port);
server_obj.server.listen();
server_obj.server.start();
}
/**

@ -83,7 +83,7 @@ describe('server', function() {
server = new grpc.Server();
});
});
describe('listen', function() {
describe('start', function() {
var server;
before(function() {
server = new grpc.Server();
@ -92,7 +92,7 @@ describe('server', function() {
after(function() {
server.shutdown();
});
it('should listen without error', function() {
it('should start without error', function() {
assert.doesNotThrow(function() {
server.start();
});

Loading…
Cancel
Save