From 23cecf778b4f4146c655f59e799ced81b9975521 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 27 Oct 2016 17:00:22 -0700 Subject: [PATCH] squash: remove another timer --- ...-tls-server-failed-handshake-emits-clienterror.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/parallel/test-tls-server-failed-handshake-emits-clienterror.js b/test/parallel/test-tls-server-failed-handshake-emits-clienterror.js index a404dc904ba7b7..d0c65834c71a6e 100644 --- a/test/parallel/test-tls-server-failed-handshake-emits-clienterror.js +++ b/test/parallel/test-tls-server-failed-handshake-emits-clienterror.js @@ -11,7 +11,6 @@ const assert = require('assert'); const bonkers = Buffer.alloc(1024, 42); -let tlsClientErrorEmited = false; const server = tls.createServer({}) .listen(0, function() { @@ -20,18 +19,11 @@ const server = tls.createServer({}) }); }).on('tlsClientError', function(e) { - tlsClientErrorEmited = true; 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'); - }); - -setTimeout(function() { - server.close(); - assert.ok(tlsClientErrorEmited, - 'tlsClientError should be emited'); - -}, common.platformTimeout(200)); + server.close(); + });