From 5cb37d03cfccc804afc6abddc8bdb93cf0dd792c Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Fri, 20 Dec 2024 10:08:44 +0100 Subject: [PATCH] Clear env vars when running 'make test' Some tests are sensible to DATABRICKS_HOST and DATABRICKS_TOKEN and fail if they are set. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f8e7834a..363718b7 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ test: lint testonly testonly: @echo "✓ Running tests ..." - @gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt ./... + @DATABRICKS_HOST= DATABRICKS_TOKEN= gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt ./... coverage: test @echo "✓ Opening coverage for unit tests ..."