From 7216eb67dfc93d88570cf3c02b4321211593f13a Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 9 Apr 2021 08:05:59 +0200 Subject: [PATCH] test: update OpenSSL 3.x expected error message This commit updates an expected error message which has changed in OpenSSl 3.x. OpenSSL 3.0 is still under development but once there is a relase we should not be seeing test failure like this. PR-URL: https://github.com/nodejs/node/pull/38164 Reviewed-By: Richard Lau Reviewed-By: Michael Dawson Reviewed-By: Rich Trott --- test/parallel/test-crypto-dh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-dh.js b/test/parallel/test-crypto-dh.js index 25a1d0f765d426..e35585e8eb19d1 100644 --- a/test/parallel/test-crypto-dh.js +++ b/test/parallel/test-crypto-dh.js @@ -188,7 +188,7 @@ if (common.hasOpenSSL3) { assert.throws(() => { dh3.computeSecret(''); }, { message: common.hasOpenSSL3 ? - 'error:02800066:Diffie-Hellman routines::invalid public key' : + 'error:02800080:Diffie-Hellman routines::invalid secret' : 'Supplied key is too small' }); // Create a shared using a DH group.