From e5dc2fbd2085154b3de01641618a5c76a73fefd8 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 19 Mar 2020 21:07:36 -0700 Subject: [PATCH] test: end tls connection with some data In openssl-1.1.1e the client doesn't seem to like having the TLS connection shut down with no data sent, so send an empty string. A number of related issues showed up in the TLS1.3 port, so this is not entirely surprising. PR-URL: https://github.com/nodejs/node/pull/32328 Fixes: https://github.com/nodejs/node/issues/32210 Reviewed-By: Sam Roberts Reviewed-By: James M Snell --- test/parallel/test-tls-session-cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-session-cache.js b/test/parallel/test-tls-session-cache.js index 34c4a71ab2c149..2be093a4f596fc 100644 --- a/test/parallel/test-tls-session-cache.js +++ b/test/parallel/test-tls-session-cache.js @@ -65,7 +65,7 @@ function doTest(testOptions, callback) { throw er; }); ++requestCount; - cleartext.end(); + cleartext.end(''); }); server.on('newSession', function(id, data, cb) { ++newSessionCount;