From 9f7f0e755879b3c6d43a786197817af680ea15fd Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Thu, 18 Nov 2021 11:42:28 +0100 Subject: [PATCH] chore: style fix --- integration-tests/cli/resource-deleter.it.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integration-tests/cli/resource-deleter.it.js b/integration-tests/cli/resource-deleter.it.js index 73cc94dc6..66b639b56 100644 --- a/integration-tests/cli/resource-deleter.it.js +++ b/integration-tests/cli/resource-deleter.it.js @@ -73,16 +73,16 @@ describe('Resource Deleter', () => { } // create resources on API - for (const name of resourcesOrder) { - await createData(apiConfig, name, resources[name]); - } + await Promise.each(resourcesOrder, (name) => { + return createData(apiConfig, name, resources[name]) + }) }, 30000) // clear resources on API afterAll(async () => { - for (const name of resourcesOrderReversed) { - await clearData(apiConfig, name); - } + await Promise.each(resourcesOrderReversed, (name) => { + return createData(apiConfig, name, resources[name]) + }) }, 45000) describe('CLI basic functionality', () => {