We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2f17c commit 7e34f77Copy full SHA for 7e34f77
1 file changed
test/parallel/test-webcrypto-wrap-unwrap.js
@@ -275,7 +275,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) {
275
assert.deepStrictEqual(exported, exportedAgain);
276
}
277
278
-async function testWrapping(name, keys) {
+function testWrapping(name, keys) {
279
const variations = [];
280
281
const {
@@ -290,15 +290,15 @@ async function testWrapping(name, keys) {
290
});
291
292
293
- return Promise.all(variations);
+ return variations;
294
295
296
(async function() {
297
await generateWrappingKeys();
298
const keys = await generateKeysToWrap();
299
300
Object.keys(kWrappingData).forEach((name) => {
301
- return testWrapping(name, keys);
+ variations.push(...testWrapping(name, keys));
302
303
await Promise.all(variations);
304
})().then(common.mustCall());
0 commit comments