From ed32cd4e67c3783ae3a0152428048f9a59e8b85d Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 11 Mar 2021 08:08:53 +0100 Subject: [PATCH] test: fixup flaky test-crypto-x509 PR-URL: https://github.com/nodejs/node/pull/37709 Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- test/parallel/test-crypto-x509.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-x509.js b/test/parallel/test-crypto-x509.js index 3d2031c52131b3..d768a1b9c5e661 100644 --- a/test/parallel/test-crypto-x509.js +++ b/test/parallel/test-crypto-x509.js @@ -110,7 +110,8 @@ const der = Buffer.from( assert(x509.publicKey); assert.strictEqual(x509.publicKey.type, 'public'); - assert.strictEqual(x509.toString().replaceAll('\r\n', '\n'), cert.toString()); + assert.strictEqual(x509.toString().replaceAll('\r\n', '\n'), + cert.toString().replaceAll('\r\n', '\n')); assert.strictEqual(x509.toJSON(), x509.toString()); assert(x509.checkPrivateKey(privateKey));