From 3d40cb85b7e875cd8677d5c857db25351b514a84 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 7 Jul 2022 23:14:35 -0500 Subject: [PATCH] fix: Reduce count to 1 for PostgreSQL tests (#2852) It's unnecessary for these to run twice. It increases CI times without providing much additional assurance tests don't have race conditions. This already runs with `-race` too. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3cdc0b1bc2..2bd99a8a06 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,7 @@ test-postgres: test-clean test-postgres-docker DB=ci DB_FROM=$(shell go run scripts/migrate-ci/main.go) gotestsum --junitfile="gotests.xml" --packages="./..." -- \ -covermode=atomic -coverprofile="gotests.coverage" -timeout=30m \ -coverpkg=./...,github.com/coder/coder/codersdk \ - -count=2 -race -failfast + -count=1 -race -failfast .PHONY: test-postgres test-postgres-docker: