From 6ae2b369196cfa3013d8ee491ef9f977c4c52eb3 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 26 Jan 2024 00:33:09 -0500 Subject: [PATCH] Use race detector in CI unit tests --- .github/workflows/build_and_test.yml | 2 +- Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index f26ea23..dff5b5e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -17,4 +17,4 @@ jobs: run: make bin - name: Run tests - run: make testv + run: TEST_FLAGS="-race" make testv diff --git a/Makefile b/Makefile index c8a1d98..0ca7f45 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,6 @@ dev: bin fmt: goimports -w . - test: go test $(TEST_FLAGS) $(shell go list ./...)