Skip to content

Commit 81d8d95

Browse files
panvaMoLow
authored andcommitted
test: fix webcrypto wrap unwrap tests
Refs: #47864 PR-URL: #47876 Refs: #47864 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b796d35 commit 81d8d95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) {
275275
assert.deepStrictEqual(exported, exportedAgain);
276276
}
277277

278-
async function testWrapping(name, keys) {
278+
function testWrapping(name, keys) {
279279
const variations = [];
280280

281281
const {
@@ -290,15 +290,15 @@ async function testWrapping(name, keys) {
290290
});
291291
});
292292

293-
return Promise.all(variations);
293+
return variations;
294294
}
295295

296296
(async function() {
297297
await generateWrappingKeys();
298298
const keys = await generateKeysToWrap();
299299
const variations = [];
300300
Object.keys(kWrappingData).forEach((name) => {
301-
return testWrapping(name, keys);
301+
variations.push(...testWrapping(name, keys));
302302
});
303303
await Promise.all(variations);
304304
})().then(common.mustCall());

0 commit comments

Comments
 (0)