Skip to content

Commit e285a7a

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 327a2b7 commit e285a7a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 deletions
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-
asyncfunctiontestWrapping(name,keys,ecdhPeerKey){
246+
asyncfunctiontestWrapping(name,keys){
247247
constvariations=[];
248248

249249
const{
@@ -264,13 +264,9 @@ async function testWrapping(name, keys, ecdhPeerKey) {
264264
(asyncfunction(){
265265
awaitgenerateWrappingKeys();
266266
constkeys=awaitgenerateKeysToWrap();
267-
constecdhPeerKey=awaitsubtle.generateKey({
268-
name: 'ECDH',
269-
namedCurve: 'P-384'
270-
},true,['deriveBits']);
271267
constvariations=[];
272268
Object.keys(kWrappingData).forEach((name)=>{
273-
returntestWrapping(name,keys,ecdhPeerKey);
269+
returntestWrapping(name,keys);
274270
});
275271
awaitPromise.all(variations);
276272
})().then(common.mustCall());

0 commit comments

Comments
 (0)