Skip to content

Commit 1ed03b0

Browse files
shigekirvagg
authored andcommitted
test: fix error messages for OpenSSL-1.1.0i
After upgradeing OpenSSL-1.1.0i, two tests are failed due to changes of error messages. Ref: openssl/openssl@45ae18b Ref: openssl/openssl@36d2517 PR-URL: #22318 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent 1ce3887 commit 1ed03b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎test/parallel/test-crypto-scrypt.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ const good = [
9595
constbad=[
9696
{N: 1,p: 1,r: 1},// N < 2
9797
{N: 3,p: 1,r: 1},// Not power of 2.
98-
{N: 2**16,p: 1,r: 1},// N >= 2**(r*16)
99-
{N: 2,p: 2**30,r: 1},// p > (2**30-1)/r
10098
{N: 1,cost: 1},// both N and cost
10199
{p: 1,parallelization: 1},// both p and parallelization
102100
{r: 1,blockSize: 1}// both r and blocksize
103101
];
104102

105103
// Test vectors where 128*N*r exceeds maxmem.
106104
consttoobig=[
105+
{N: 2**16,p: 1,r: 1},// N >= 2**(r*16)
106+
{N: 2,p: 2**30,r: 1},// p > (2**30-1)/r
107107
{N: 2**20,p: 1,r: 8},
108108
{N: 2**10,p: 1,r: 8,maxmem: 2**20},
109109
];

‎test/parallel/test-tls-passphrase.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ server.listen(0, common.mustCall(function(){
221221
},common.mustCall());
222222
})).unref();
223223

224-
consterrMessagePassword=/badpasswordread/;
224+
consterrMessagePassword=/baddecrypt/;
225225

226226
// Missing passphrase
227227
assert.throws(function(){

0 commit comments

Comments
(0)