Skip to content

test: fix OpenSSL version checks

As per the original pull request that introduced the OpenSSL version check in parallel/test-crypto-dh:

Error message change is test-only and uses the right error message for
versions >=3.0.12 in 3.0.x and >= 3.1.4 in 3.1.x series.

Fix the check so that:

  • The older message is expected for OpenSSL 3.1.0.
  • The newer message is expected for OpenSSL from 3.1.4 (e.g. 3.2.x).

Refs: https://github.com/nodejs/node/pull/50395 Refs: https://github.com/nodejs/node/issues/53382


Follow up to https://github.com/nodejs/node/pull/53456#discussion_r1640231149 and https://github.com/nodejs/node/pull/53456#discussion_r1640276601. cc @nodejs/crypto

Merge request reports

Loading