Skip to content

Commit c8c6173

Browse files
huseyinacacak-janeaaduh95
authored andcommitted
test: fix test-tls-ticket-cluster.js
Ensured connection end is initiated by worker (server) Fixes: #2510 PR-URL: #52431 Reviewed-By: Luigi Pinca <[email protected]>
1 parent 4d77fd2 commit c8c6173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-tls-ticket-cluster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (cluster.isPrimary) {
4646
session: lastSession,
4747
rejectUnauthorized: false
4848
}, () => {
49-
c.end();
49+
c.on('end', c.end);
5050
}).on('close', () => {
5151
// Wait for close to shoot off another connection. We don't want to shoot
5252
// until a new session is allocated, if one will be. The new session is

0 commit comments

Comments
 (0)