summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-07-19 11:21:29 -0700
committerFedor Indutny <fedor@indutny.com>2015-07-20 11:47:07 -0700
commitb8d47a7b6f0ba70883ce5566f5c381a16eedb2a2 (patch)
treea49a9aa622f05a604026709838ea8e978bbf7590
parent22997731e60eeb84b1e03ff438710ff219b46854 (diff)
downloadnode-b8d47a7b6f0ba70883ce5566f5c381a16eedb2a2.tar.gz
fix
Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/25739
-rw-r--r--test/simple/test-tls-new-session-hang.js7
1 files 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 e2f309508..6fdf89817 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({