diff --git a/apps/meteor/tests/end-to-end/api/28-roles.ts b/apps/meteor/tests/end-to-end/api/28-roles.ts index ba1bcf4322a6..6f8dfeab419e 100644 --- a/apps/meteor/tests/end-to-end/api/28-roles.ts +++ b/apps/meteor/tests/end-to-end/api/28-roles.ts @@ -177,6 +177,7 @@ describe('[Roles]', function () { }); after(async () => { + await deleteUser(testUser); if (!isEnterprise) { return; } @@ -184,7 +185,6 @@ describe('[Roles]', function () { await request.post(api('roles.delete')).set(credentials).send({ roleId: testRoleId, }); - await deleteUser(testUser); }); it('should successfully get an empty list of users in a role if no user has been assigned to it', async function () {