Skip to content

Commit

Permalink
fix(system-e2e): Load x road mock in sequence (#15446)
Browse files Browse the repository at this point in the history
Co-authored-by: lommi <[email protected]>
  • Loading branch information
thordurhhh and lodmfjord authored Jul 4, 2024
1 parent dc0be28 commit 129bdd3
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ export const setupXroadMocks = async () => {
await resetMocks()

/** Xroad mocks */
await Promise.all([
loadAssetsXroadMocks().catch((error) => ({ error })),
loadHealthInsuranceXroadMocks().catch((error) => ({ error })),
loadSocialInsuranceXroadMocks().catch((error) => ({ error })),
loadLicensesXroadMocks().catch((error) => ({ error })),
loadOccupationalLicensesXroadMocks().catch((error) => ({ error })),
])
await loadAssetsXroadMocks()
await loadHealthInsuranceXroadMocks()
await loadSocialInsuranceXroadMocks()
await loadLicensesXroadMocks()
await loadOccupationalLicensesXroadMocks()

const { envs } = getEnvVariables(Base.getEnv(), 'system-e2e', env)
const xroadBasePath = envs['XROAD_BASE_PATH']
Expand Down

0 comments on commit 129bdd3

Please sign in to comment.