Skip to content

Commit 7b8b723

Browse files
committed
test: fix regression when compiled with FIPS
In commit bff53c5, a check was added for very specific OpenSSL format. Unfortunately, when OpenSSL is compiled in FIPS mode, this check fails. Added additional regex to satisfy OpenSSL version strings in both regular and FIPS modes.
1 parent 24cb1f3 commit 7b8b723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-process-versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ assert(/^\d+\.\d+\.\d+(?:\.\d+)?-node\.\d+(?: \(candidate\))?$/
3434
assert(/^\d+$/.test(process.versions.modules));
3535

3636
if (common.hasCrypto) {
37-
assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl));
37+
assert(/^\d+\.\d+\.\d+[a-z]?(-fips)?$/.test(process.versions.openssl));
3838
}
3939

4040
for (let i = 0; i < expected_keys.length; i++) {

0 commit comments

Comments
 (0)