diff --git a/test/parallel/test-policy-crypto-default-encoding.js b/test/parallel/test-policy-crypto-default-encoding.js index 450a870541ac85..98bfd3deec2d41 100644 --- a/test/parallel/test-policy-crypto-default-encoding.js +++ b/test/parallel/test-policy-crypto-default-encoding.js @@ -25,7 +25,7 @@ for (const encoding of encodings) { ], { env: { - ...env, + ...process.env, DEFAULT_ENCODING: encoding } }