diff --git a/test/parallel/test-tls-ecdh-multiple.js b/test/parallel/test-tls-ecdh-multiple.js index 17d2baeb9af421..ae2168adb5a16e 100644 --- a/test/parallel/test-tls-ecdh-multiple.js +++ b/test/parallel/test-tls-ecdh-multiple.js @@ -51,7 +51,9 @@ const server = tls.createServer(options, (conn) => { ]; // Brainpool is not supported in FIPS mode. - if (common.hasFipsCrypto) unsupportedCurves.push('brainpoolP256r1'); + if (common.hasFipsCrypto) + unsupportedCurves.push('brainpoolP256r1'); + for (const ecdhCurve of unsupportedCurves) { assert.throws( () => tls.createServer({ ecdhCurve }),