diff --git a/test/parallel/test-crypto-fips.js b/test/parallel/test-crypto-fips.js index a231db2c1aa1e1..fa4b80968976c5 100644 --- a/test/parallel/test-crypto-fips.js +++ b/test/parallel/test-crypto-fips.js @@ -1,3 +1,4 @@ +// Flags: --expose-internals 'use strict'; const common = require('../common'); if (!common.hasCrypto) @@ -7,6 +8,8 @@ const assert = require('assert'); const spawnSync = require('child_process').spawnSync; const path = require('path'); const fixtures = require('../common/fixtures'); +const { internalBinding } = require('internal/test/binding'); +const { fipsMode } = internalBinding('config'); const FIPS_ENABLED = 1; const FIPS_DISABLED = 0; @@ -24,7 +27,7 @@ const CNF_FIPS_OFF = fixtures.path('openssl_fips_disabled.cnf'); let num_children_ok = 0; function compiledWithFips() { - return process.config.variables.openssl_fips ? true : false; + return fipsMode ? true : false; } function sharedOpenSSL() {