From 4941d47212401c697604f0ac12e7862a569a9533 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 2 Jul 2019 13:24:51 +0200 Subject: [PATCH] test: don't use deprecated crypto.fips property `crypto.fips` was deprecated in commit 6e7992e8b8 ("crypto: docs-only deprecate crypto.fips, replace") but its usage in `common.hasFipsCrypto` seems to have been overlooked. PR-URL: https://github.com/nodejs/node/pull/28509 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- test/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index bbb74e2b988517..13604d06e14a36 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -789,7 +789,7 @@ module.exports = { get localhostIPv6() { return '::1'; }, get hasFipsCrypto() { - return hasCrypto && require('crypto').fips; + return hasCrypto && require('crypto').getFips(); }, get inFreeBSDJail() {