Skip to content

Commit

Permalink
test: fix test-tls-ticket-cluster.js
Browse files Browse the repository at this point in the history
Ensured connection end is initiated by worker (server)

Fixes: #2510
PR-URL: #52431
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
huseyinacacak-janea authored and marco-ippolito committed May 3, 2024
1 parent 9c330b6 commit c871fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-tls-ticket-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c871fad

Please sign in to comment.