From 04b4fb1a42d2b45b1cae7e10db1d63503dedbf7f Mon Sep 17 00:00:00 2001 From: Antonio Gamez Diaz Date: Mon, 7 Aug 2023 12:07:19 +0200 Subject: [PATCH] Add `detectOpenHandles` to yarn test to avoid tests to hang Signed-off-by: Antonio Gamez Diaz --- .github/workflows/kubeapps-general.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kubeapps-general.yaml b/.github/workflows/kubeapps-general.yaml index 03da3eb5258..4328dec2b73 100644 --- a/.github/workflows/kubeapps-general.yaml +++ b/.github/workflows/kubeapps-general.yaml @@ -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: diff --git a/Makefile b/Makefile index f484815b7db..e2eaff0ccdf 100644 --- a/Makefile +++ b/Makefile @@ -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/$*