diff options
author | Filip Skokan <panva.ip@gmail.com> | 2023-05-07 12:54:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 10:54:20 +0000 |
commit | ecf1427df3b17dc77541c7def32dc7f672fa64d3 (patch) | |
tree | 99366c169a5abeeaf28b5366e7e13c44754993d7 | |
parent | b7c82a3480a0c3699ab97a5d8b4c0588709a38ff (diff) | |
download | node-new-ecf1427df3b17dc77541c7def32dc7f672fa64d3.tar.gz |
test: fix webcrypto wrap unwrap tests
Refs: #47864
PR-URL: https://github.com/nodejs/node/pull/47876
Refs: https://github.com/nodejs/node/issues/47864
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
-rw-r--r-- | test/parallel/test-webcrypto-wrap-unwrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-webcrypto-wrap-unwrap.js b/test/parallel/test-webcrypto-wrap-unwrap.js index 2978d3fec4..d1ca571af4 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()); |