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({