Skip to content
Permalink
Browse files

test: don't use deprecated crypto.fips property

`crypto.fips` was deprecated in commit 6e7992e ("crypto: docs-only
deprecate crypto.fips, replace") but its usage in `common.hasFipsCrypto`
seems to have been overlooked.

PR-URL: #28509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
bnoordhuis authored and targos committed Jul 2, 2019
1 parent 8d41b07 commit 4941d47212401c697604f0ac12e7862a569a9533
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() {

0 comments on commit 4941d47

Please sign in to comment.
You can’t perform that action at this time.