Skip to content

Commit

Permalink
test: don't use deprecated crypto.fips property
Browse files Browse the repository at this point in the history
`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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
bnoordhuis authored and targos committed Jul 20, 2019
1 parent 8d41b07 commit 4941d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ module.exports = {
get localhostIPv6() { return '::1'; },

get hasFipsCrypto() {
return hasCrypto && require('crypto').fips;
return hasCrypto && require('crypto').getFips();
},

get inFreeBSDJail() {
Expand Down

0 comments on commit 4941d47

Please sign in to comment.