From 60e25e55c5ba49709cd7c31f1874369bdfb7f56c Mon Sep 17 00:00:00 2001 From: Lalatendu Mohanty Date: Wed, 21 Apr 2021 12:23:24 -0400 Subject: [PATCH] Expire all test results in the go build cache before new run Else go test was giving success everytime even if the test cluster was deleted as the result was cached $ go test -v ./functests/... === RUN TestCustomResource xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --- PASS: TestCustomResource (241.87s) PASS ok github.com/openshift/cincinnati-operator/functests (cached) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 4ff6bf73d..d50daceb3 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ endif clean: @echo "Cleaning previous outputs" + go clean -testcache rm functests/functests.test deploy: @@ -51,10 +52,12 @@ deploy: func-test: deploy @echo "Running functional test suite" + go clean -testcache go test -v ./functests/... unit-test: @echo "Executing unit tests" + go clean -testcache go test -v ./controllers/... build: $(SOURCES)