Skip to content

Commit 01fe2ce

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 a07ccae commit 01fe2ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/parallel/test-crypto-scrypt.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ const good = [
9595
const bad = [
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
const toobig = [
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

+1-1
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-
const errMessagePassword = /bad password read/;
224+
const errMessagePassword = /bad decrypt/;
225225

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

0 commit comments

Comments
 (0)