mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
node: fix test-net-server-close-before-calling-lookup-callback.js (#18103)
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const common = require('../common');
|
||||||
|
const net = require('net');
|
||||||
|
// Process should exit because it does not create a real TCP server.
|
||||||
|
// Pass localhost to ensure create TCP handle asynchronously because it causes DNS resolution.
|
||||||
|
net.createServer().listen(0, 'localhost', common.mustNotCall()).close();
|
||||||
Reference in New Issue
Block a user