summaryrefslogtreecommitdiff
path: root/test/parallel/test-webcrypto-wrap-unwrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-webcrypto-wrap-unwrap.js')
-rw-r--r--test/parallel/test-webcrypto-wrap-unwrap.js6
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());