Skip to content

Commit 4941d47

Browse files
bnoordhuistargos
authored andcommitted
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>
1 parent 8d41b07 commit 4941d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ module.exports = {
789789
get localhostIPv6() { return '::1'; },
790790

791791
get hasFipsCrypto() {
792-
return hasCrypto && require('crypto').fips;
792+
return hasCrypto && require('crypto').getFips();
793793
},
794794

795795
get inFreeBSDJail() {

0 commit comments

Comments
 (0)