Lines Matching refs:server
24 // Connecting to the server should fail with a standard array.
26 const server = net.createServer(common.mustNotCall('should not connect'));
28 server.listen(common.mustCall(() => {
29 const port = server.address().port;
37 server.close();
41 // Connecting to the server should succeed with a normalized array.
43 const server = net.createServer(common.mustCall((connection) => {
45 server.close();
48 server.listen(common.mustCall(() => {
49 const port = server.address().port;