Skip to content

Commit 1d4d918

Browse files
committed
squash! src: raise error for --enable-fips when no FIPS
Clarify that the crypto module is not required to check that an error is raised.
1 parent bd9c8ca commit 1d4d918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-fips.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ testHelper(
6464
testFipsCrypto() ? 'stdout' : 'stderr',
6565
['--enable-fips'],
6666
testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING,
67-
'require("crypto").getFips()',
67+
'process.versions',
6868
process.env);
6969

7070
// --force-fips should raise an error if OpenSSL is not FIPS enabled.
7171
testHelper(
7272
testFipsCrypto() ? 'stdout' : 'stderr',
7373
['--force-fips'],
7474
testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING,
75-
'require("crypto").getFips()',
75+
'process.versions',
7676
process.env);
7777

7878
// By default FIPS should be off in both FIPS and non-FIPS builds.

0 commit comments

Comments
 (0)