From 841ef325458558a2ed922ac3ac863e7c59a42628 Mon Sep 17 00:00:00 2001 From: Seebs Date: Mon, 27 Feb 2023 13:14:33 -0600 Subject: [PATCH] force count to 1 to disable test caching The caching of test results means that we get instant cached results rather than actually running tests in some cases, which is virtually guaranteed not to be what we want. There's almost no cases where this actually speeds a thing up validly, and a lot where it speeds a thing up invalidly. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23e9d0ba9..58b084c66 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ GOPACKAGES := $(shell $(GO) list ./... | grep -v "/idk" | grep -v "/batch") # Run test suite test: - $(GO) test $(GOPACKAGES) -tags='$(BUILD_TAGS) $(TEST_TAGS)' $(TESTFLAGS) -v -timeout $(TEST_TIMEOUT) + $(GO) test $(GOPACKAGES) -tags='$(BUILD_TAGS) $(TEST_TAGS)' $(TESTFLAGS) -v -timeout $(TEST_TIMEOUT) -count=1 # Run test suite with race flag test-race: