From 3fba6d88acbf72cfdab869548a67b80b7b08510e Mon Sep 17 00:00:00 2001 From: m5r Date: Wed, 20 Mar 2024 11:53:57 +0100 Subject: [PATCH] log how long it takes in CI --- tests/integration/api/controllers/users.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/api/controllers/users.spec.js b/tests/integration/api/controllers/users.spec.js index 1c72b5056ed..40eb9c9ad6d 100644 --- a/tests/integration/api/controllers/users.spec.js +++ b/tests/integration/api/controllers/users.spec.js @@ -1616,7 +1616,8 @@ describe('Users API', () => { }); } - await Promise.all(savedUsers.map(async (savedUser) => { + const before = Date.now(); + for (const savedUser of savedUsers) { // GET with facility_id filter let filteredUsers = await utils.request({ path: `/api/v2/users`, @@ -1643,7 +1644,8 @@ describe('Users API', () => { }); expect(filteredUsers.length).to.equal(1); expect(filteredUsers[0]).to.deep.equal(savedUser); - })); + } + console.log(`took ${(Date.now() - before)}ms`); }); }); });