Skip to content

Commit

Permalink
squash: common.mustCall()
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Oct 29, 2016
1 parent 23cecf7 commit 571a612
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const server = tls.createServer({})
c.write(bonkers);
});

}).on('tlsClientError', function(e) {
}).on('tlsClientError', common.mustCall(function(e) {
assert.ok(e instanceof Error,
'Instance of Error should be passed to error handler');
assert.ok(e.message.match(
/SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol/),
'Expecting SSL unknown protocol');

server.close();
});
}));

0 comments on commit 571a612

Please sign in to comment.