diff --git a/test/parallel/test-crypto-fips.js b/test/parallel/test-crypto-fips.js index d6cc334f924c29..cfc87a3c6d5021 100644 --- a/test/parallel/test-crypto-fips.js +++ b/test/parallel/test-crypto-fips.js @@ -64,7 +64,7 @@ testHelper( testFipsCrypto() ? 'stdout' : 'stderr', ['--enable-fips'], testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING, - 'require("crypto").getFips()', + 'process.versions', process.env); // --force-fips should raise an error if OpenSSL is not FIPS enabled. @@ -72,7 +72,7 @@ testHelper( testFipsCrypto() ? 'stdout' : 'stderr', ['--force-fips'], testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING, - 'require("crypto").getFips()', + 'process.versions', process.env); // By default FIPS should be off in both FIPS and non-FIPS builds.