diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js index 0d531a3d6f0179..e6eb92540ae28f 100644 --- a/test/parallel/test-tls-dhe.js +++ b/test/parallel/test-tls-dhe.js @@ -77,8 +77,8 @@ function test(keylen, expectedCipher, cb) { out += d; }); client.stdout.on('end', function() { - // DHE key length can be checked -brief option in s_client but it - // is only supported in openssl 1.0.2 so we cannot check it. + assert(keylen === 'error' || + out.includes(`Server Temp Key: DH, ${keylen} bits`)); const reg = new RegExp(`Cipher : ${expectedCipher}`); if (reg.test(out)) { nsuccess++;