Skip to content

Commit

Permalink
test: fix flaky key pair generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Sep 20, 2018
1 parent 676bd5f commit 584903b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 584903b

Please sign in to comment.