From a901e8cdbf2d16d8f90e7937450037a1ca7664a3 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sat, 3 Feb 2018 16:50:16 +0100 Subject: [PATCH] Add race condition check for tests --- all-test-with-coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-test-with-coverage.sh b/all-test-with-coverage.sh index eaf5ea0..56bfcf1 100644 --- a/all-test-with-coverage.sh +++ b/all-test-with-coverage.sh @@ -4,7 +4,7 @@ set -e echo "" > coverage.txt for d in $(go list ./... | grep -v vendor); do - go test -v -coverprofile=profile.out -covermode=atomic $d + go test -v -race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >> coverage.txt rm profile.out