We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc8f75 commit f9b63b8Copy full SHA for f9b63b8
test/parallel/test-crypto-keygen.js
@@ -1325,6 +1325,8 @@ if (!common.hasOpenSSL3) {
1325
if (!getCurves().includes(namedCurve))
1326
continue;
1327
1328
+ const expectedErrorCode =
1329
+ common.hasOpenSSL3 ? 'ERR_OSSL_MISSING_OID' : 'ERR_OSSL_EC_MISSING_OID';
1330
const params = {
1331
namedCurve,
1332
publicKeyEncoding: {
@@ -1336,11 +1338,11 @@ if (!common.hasOpenSSL3) {
1336
1338
assert.throws(() => {
1337
1339
generateKeyPairSync('ec', params);
1340
}, {
- code: 'ERR_OSSL_EC_MISSING_OID'
1341
+ code: expectedErrorCode
1342
});
1343
1344
generateKeyPair('ec', params, common.mustCall((err) => {
- assert.strictEqual(err.code, 'ERR_OSSL_EC_MISSING_OID');
1345
+ assert.strictEqual(err.code, expectedErrorCode);
1346
}));
1347
}
1348
0 commit comments