From 8adfe2ade3e71dbc200285ebe1f2c513dc347310 Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Wed, 13 Dec 2023 08:16:58 +0100 Subject: [PATCH] net: improved test --- test/internet/test-net-autoselectfamily-events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/internet/test-net-autoselectfamily-events.js b/test/internet/test-net-autoselectfamily-events.js index 5e86673d901bc7..d87a99c54898fd 100644 --- a/test/internet/test-net-autoselectfamily-events.js +++ b/test/internet/test-net-autoselectfamily-events.js @@ -98,5 +98,5 @@ const { createConnection } = require('net'); connection.destroy(); }); - connection.on('ready', () => connection.end()); + connection.on('ready', () => connection.destroy()); }