From 99c15909ad2293aada98a996de4359e75c744fce Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sat, 16 Jan 2021 06:44:53 -0800 Subject: [PATCH] test: fixup flaky test-crypto-x509 on windows PR-URL: https://github.com/nodejs/node/pull/36966 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- test/parallel/test-crypto-x509.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-x509.js b/test/parallel/test-crypto-x509.js index b97d53be799515..3d2031c52131b3 100644 --- a/test/parallel/test-crypto-x509.js +++ b/test/parallel/test-crypto-x509.js @@ -110,7 +110,7 @@ const der = Buffer.from( assert(x509.publicKey); assert.strictEqual(x509.publicKey.type, 'public'); - assert.strictEqual(x509.toString(), cert.toString()); + assert.strictEqual(x509.toString().replaceAll('\r\n', '\n'), cert.toString()); assert.strictEqual(x509.toJSON(), x509.toString()); assert(x509.checkPrivateKey(privateKey));