Skip to content

Commit

Permalink
log how long it takes in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Mar 20, 2024
1 parent 48030f1 commit 3fba6d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/api/controllers/users.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -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`);
});
});
});

0 comments on commit 3fba6d8

Please sign in to comment.