Skip to content

Commit

Permalink
Add detectOpenHandles to yarn test to avoid tests to hang
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
  • Loading branch information
antgamdia committed Aug 7, 2023
1 parent b960517 commit 04b4fb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kubeapps-general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Run dashboard linter
run: yarn --cwd=dashboard run lint
- name: Run dashboard unit tests
run: yarn --cwd=dashboard run test --maxWorkers=4 --coverage --logHeapUsage
run: yarn --cwd=dashboard run test --maxWorkers=4 --coverage --logHeapUsage --detectOpenHandles --forceExit

test_pinniped_proxy:
needs:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test-all: test-apprepository-controller test-dashboard
test-dashboard:
yarn --cwd dashboard/ install --frozen-lockfile
yarn --cwd=dashboard run lint
CI=true yarn --cwd dashboard/ run test
CI=true yarn --cwd dashboard/ run test --detectOpenHandles --forceExit

test-%:
$(GO) test -v $(IMPORT_PATH)/cmd/$*
Expand Down

0 comments on commit 04b4fb1

Please sign in to comment.