Skip to content

Commit c871fad

Browse files
huseyinacacak-janeamarco-ippolito
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 <luigipinca@gmail.com>
1 parent 9c330b6 commit c871fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)