From c8c61737e46e40033a7442ec6c089174dd3c690d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20A=C3=A7acak?= <110401522+huseyinacacak-janea@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:17:28 +0300 Subject: [PATCH] test: fix test-tls-ticket-cluster.js Ensured connection end is initiated by worker (server) Fixes: https://github.com/nodejs/node/issues/2510 PR-URL: https://github.com/nodejs/node/pull/52431 Reviewed-By: Luigi Pinca --- test/parallel/test-tls-ticket-cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-ticket-cluster.js b/test/parallel/test-tls-ticket-cluster.js index 089660258cda41..746b8533147f54 100644 --- a/test/parallel/test-tls-ticket-cluster.js +++ b/test/parallel/test-tls-ticket-cluster.js @@ -46,7 +46,7 @@ if (cluster.isPrimary) { session: lastSession, rejectUnauthorized: false }, () => { - c.end(); + c.on('end', c.end); }).on('close', () => { // Wait for close to shoot off another connection. We don't want to shoot // until a new session is allocated, if one will be. The new session is