2024-03-03 18:29:15 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const common = require('../common');
|
|
|
|
const net = require('net');
|
|
|
|
// Process should exit because it does not create a real TCP server.
|
2024-08-23 11:11:43 +02:00
|
|
|
// Pass localhost to ensure create TCP handle asynchronously because it causes DNS resolution.
|
2024-03-03 18:29:15 +08:00
|
|
|
net.createServer().listen(0, 'localhost', common.mustNotCall()).close();
|