Skip to content

Commit 98369aa

Browse files
danbevruyadorno
authored andcommitted
test: remove unused ecdhPeerKey
This commit removed ecdhPeerKey from test-webcrypto-wrap-unwrap.js which seems to be unsued. PR-URL: #36942 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 3f75a60 commit 98369aa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/parallel/test-webcrypto-wrap-unwrap.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) {
243243
assert.deepStrictEqual(exported, exportedAgain);
244244
}
245245

246-
async function testWrapping(name, keys, ecdhPeerKey) {
246+
async function testWrapping(name, keys) {
247247
const variations = [];
248248

249249
const {
@@ -264,13 +264,9 @@ async function testWrapping(name, keys, ecdhPeerKey) {
264264
(async function() {
265265
await generateWrappingKeys();
266266
const keys = await generateKeysToWrap();
267-
const ecdhPeerKey = await subtle.generateKey({
268-
name: 'ECDH',
269-
namedCurve: 'P-384'
270-
}, true, ['deriveBits']);
271267
const variations = [];
272268
Object.keys(kWrappingData).forEach((name) => {
273-
return testWrapping(name, keys, ecdhPeerKey);
269+
return testWrapping(name, keys);
274270
});
275271
await Promise.all(variations);
276272
})().then(common.mustCall());

0 commit comments

Comments
 (0)