From 9839e8ac237a835e0f726c6a7cf3dcdb04ddb029 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Thu, 29 Jun 2023 07:45:04 +0000 Subject: [PATCH] Exit at first error --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2b4ccd161..3d9316e18 100644 --- a/Makefile +++ b/Makefile @@ -313,6 +313,7 @@ test-unit: UNIT_TEST_PACKAGES = $(shell go list ./... | \ grep -v /transactions/fake ) test-unit: ##@tests Run unit and integration tests for file in $(UNIT_TEST_PACKAGES); do \ + set -e; \ go test -tags '$(BUILD_TAGS)' -timeout 20m -v -failfast $$file $(gotest_extraflags); \ done