From 584903bec9deb33f201403a041dfbd4a4dbaa725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 20 Sep 2018 20:55:05 +0200 Subject: [PATCH] test: fix flaky key pair generation test Fixes: https://github.com/nodejs/node/issues/22978 --- test/parallel/test-crypto-keygen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-keygen.js b/test/parallel/test-crypto-keygen.js index f614b09292501e..08e37e2ac0d902 100644 --- a/test/parallel/test-crypto-keygen.js +++ b/test/parallel/test-crypto-keygen.js @@ -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, { @@ -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,