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 <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 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
Expand Up @@ -789,7 +789,7 @@ module.exports = {
get localhostIPv6() { return '::1'; }, get localhostIPv6() { return '::1'; },


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


get inFreeBSDJail() { get inFreeBSDJail() {
Expand Down

0 comments on commit 4941d47

Please sign in to comment.