From b8d47a7b6f0ba70883ce5566f5c381a16eedb2a2 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sun, 19 Jul 2015 11:21:29 -0700 Subject: [PATCH] fix Reviewed-By: Fedor Indutny PR-URL: https://github.com/joyent/node/pull/25739 --- test/simple/test-tls-new-session-hang.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/simple/test-tls-new-session-hang.js b/test/simple/test-tls-new-session-hang.js index e2f3095083a4f2..6fdf89817ab6d0 100644 --- a/test/simple/test-tls-new-session-hang.js +++ b/test/simple/test-tls-new-session-hang.js @@ -25,10 +25,9 @@ var server = tls.createServer({ socket.destroySoon(); }); -// Should not be actually called -server.on('resumeSession', function (id, callback) { - assert(false); -}); +server.on('resumeSession', common.mustCall(function() { + // Should not be actually called +}, 0)); server.listen(common.PORT, function() { var client = tls.connect({