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 aduh95 committed Apr 29, 2024
1 parent 4d77fd2 commit c8c6173
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 c8c6173

Please sign in to comment.