Skip to content

Commit

Permalink
test: fixup flaky test-crypto-x509
Browse files Browse the repository at this point in the history
PR-URL: nodejs#37709
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
panva committed Mar 11, 2021
1 parent 8a6d7a0 commit 8283373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-crypto-x509.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8283373

Please sign in to comment.