From aa92e115366197c008e2ad84e55a2cae3f0b799e Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 5 May 2023 12:43:52 +0200 Subject: [PATCH] test: fix webcrypto wrap unwrap tests Refs: #47864 --- test/parallel/test-webcrypto-wrap-unwrap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-webcrypto-wrap-unwrap.js b/test/parallel/test-webcrypto-wrap-unwrap.js index 2978d3fec46c3c..d1ca571af4be71 100644 --- a/test/parallel/test-webcrypto-wrap-unwrap.js +++ b/test/parallel/test-webcrypto-wrap-unwrap.js @@ -275,7 +275,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) { assert.deepStrictEqual(exported, exportedAgain); } -async function testWrapping(name, keys) { +function testWrapping(name, keys) { const variations = []; const { @@ -290,7 +290,7 @@ async function testWrapping(name, keys) { }); }); - return Promise.all(variations); + return variations; } (async function() { @@ -298,7 +298,7 @@ async function testWrapping(name, keys) { const keys = await generateKeysToWrap(); const variations = []; Object.keys(kWrappingData).forEach((name) => { - return testWrapping(name, keys); + variations.push(...testWrapping(name, keys)); }); await Promise.all(variations); })().then(common.mustCall());