From 0f6320b45489385c10ab60cf163551f46dddf908 Mon Sep 17 00:00:00 2001 From: Oryan Moshe Date: Wed, 1 Aug 2018 21:31:34 +0300 Subject: [PATCH] test/test-tls-hello-parser-failure.js: see value of "hadError" The existing implementation created a state that if the assert failed we got an error message without the values of hadError. Removed the default error message and added a comment explaining the assert. --- test/parallel/test-tls-hello-parser-failure.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-tls-hello-parser-failure.js b/test/parallel/test-tls-hello-parser-failure.js index 4a7d8999c78d39..4b92f6bde3151c 100644 --- a/test/parallel/test-tls-hello-parser-failure.js +++ b/test/parallel/test-tls-hello-parser-failure.js @@ -60,6 +60,7 @@ const server = tls.createServer(options, function(c) { })); client.on('close', common.mustCall(function(hadError) { - assert.strictEqual(hadError, true, 'Client never errored'); + // Confirm that client errored + assert.strictEqual(hadError, true); })); }));