From ea563117ad3ecef653bd91c2e731e86d77dee5dc 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 --- 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));