Skip to content

Commit b8d47a7

Browse files
committed
fix
Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: nodejs/node-v0.x-archive#25739
1 parent 2299773 commit b8d47a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/simple/test-tls-new-session-hang.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ var server = tls.createServer({
2525
socket.destroySoon();
2626
});
2727

28-
// Should not be actually called
29-
server.on('resumeSession', function (id, callback) {
30-
assert(false);
31-
});
28+
server.on('resumeSession', common.mustCall(function() {
29+
// Should not be actually called
30+
}, 0));
3231

3332
server.listen(common.PORT, function() {
3433
var client = tls.connect({

0 commit comments

Comments
 (0)