Skip to content

Commit

Permalink
[TM-1453] The database test needs to run without cache so it does its…
Browse files Browse the repository at this point in the history
… job of setting up the DB.
  • Loading branch information
roguenet committed Nov 22, 2024
1 parent 2d055d1 commit 2fa9abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# in a clean way. For some reason, the `run-many` is necessary here. If this line simply uses
# nx test database, the connection to the DB gets cut off before the sync is complete.
- name: Sync DB Schema
run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx test database
run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx test database --no-cache

- name: Test all
run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx run-many -t test --coverage --passWithNoTests
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class SitePolygonsService {
const { indicatorSlug, yearOfAnalysis } = indicator;
const IndicatorClass = INDICATOR_MODEL_CLASSES[indicatorSlug];
if (IndicatorClass == null) {
throw new BadRequestException(`Model not found for indicator: ${indicator.indicatorSlug}`);
throw new BadRequestException(`Model not found for indicator: ${indicatorSlug}`);
}

const model =
Expand Down

0 comments on commit 2fa9abc

Please sign in to comment.