Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix flaky key pair generation test
Fixes: #22978
  • Loading branch information
tniessen committed Sep 20, 2018
commit 584903bec9deb33f201403a041dfbd4a4dbaa725
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-keygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function convertDERToPEM(label, der) {
// Since the private key is encrypted, signing shouldn't work anymore.
assert.throws(() => {
testSignVerify(publicKey, privateKey);
}, /bad decrypt/);
}, /bad decrypt|asn1 encoding routines/);

// Signing should work with the correct password.
testSignVerify(publicKey, {
Expand Down Expand Up @@ -232,7 +232,7 @@ function convertDERToPEM(label, der) {
// Since the private key is encrypted, signing shouldn't work anymore.
assert.throws(() => {
testSignVerify(publicKey, privateKey);
}, /bad decrypt/);
}, /bad decrypt|asn1 encoding routines/);

testSignVerify(publicKey, {
key: privateKey,
Expand Down