diff --git a/packages/integration-tests/src/tests/api/hook/hook.trigger.custom.data.test.ts b/packages/integration-tests/src/tests/api/hook/hook.trigger.custom.data.test.ts index e3ab6f593..8cf614f3e 100644 --- a/packages/integration-tests/src/tests/api/hook/hook.trigger.custom.data.test.ts +++ b/packages/integration-tests/src/tests/api/hook/hook.trigger.custom.data.test.ts @@ -44,7 +44,12 @@ describe('manual data hook tests', () => { }); afterEach(async () => { - await Promise.all([webHookApi.cleanUp(), userApi.cleanUp(), organizationApi.cleanUp()]); + await Promise.all([ + webHookApi.cleanUp(), + userApi.cleanUp(), + organizationApi.cleanUp(), + ssoConnectorApi.cleanUp(), + ]); }); it('create roles with scopeIds should trigger Roles.Scopes.Updated event', async () => { @@ -171,8 +176,6 @@ describe('manual data hook tests', () => { }); await assertOrganizationMembershipUpdated(organization.id); - - await ssoConnectorApi.cleanUp(); }); }); }); diff --git a/packages/integration-tests/src/tests/api/interaction/organization-jit.test.ts b/packages/integration-tests/src/tests/api/interaction/organization-jit.test.ts index 52d7fa9ca..6c1b3aeec 100644 --- a/packages/integration-tests/src/tests/api/interaction/organization-jit.test.ts +++ b/packages/integration-tests/src/tests/api/interaction/organization-jit.test.ts @@ -28,7 +28,7 @@ describe('organization just-in-time provisioning', () => { const ssoConnectorApi = new SsoConnectorApi(); afterEach(async () => { - await organizationApi.cleanUp(); + await Promise.all([organizationApi.cleanUp(), ssoConnectorApi.cleanUp()]); }); beforeAll(async () => { @@ -120,6 +120,5 @@ describe('organization just-in-time provisioning', () => { ); await deleteUser(userId); - await ssoConnectorApi.cleanUp(); }); });