diff --git a/qa-core/src/account-api/api/apis/LicenseAPI.ts b/qa-core/src/account-api/api/apis/LicenseAPI.ts index f726eb5682..e0601fe127 100644 --- a/qa-core/src/account-api/api/apis/LicenseAPI.ts +++ b/qa-core/src/account-api/api/apis/LicenseAPI.ts @@ -20,6 +20,12 @@ export default class LicenseAPI { internal: true, } ) + + if (response.status !== 200) { + throw new Error( + `Could not update license for accountId=${accountId}: ${response.status}` + ) + } return [response, json] } } diff --git a/qa-core/src/internal-api/tests/users/appSpecificRoles.spec.ts b/qa-core/src/internal-api/tests/users/appSpecificRoles.spec.ts index c3c9395b78..325735b3fc 100644 --- a/qa-core/src/internal-api/tests/users/appSpecificRoles.spec.ts +++ b/qa-core/src/internal-api/tests/users/appSpecificRoles.spec.ts @@ -11,9 +11,6 @@ describe("Internal API - App Specific Roles & Permissions", () => { await config.beforeAll() }) - afterAll(async () => { - await config.afterAll() - }) afterAll(async () => { await config.afterAll() })