From f22cb18d59cef96eae6deb92dbc578aa021564e5 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. --- 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() {