From 20b539754e65b9fcfa1c59b9ebb6390d33b727d9 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 29 Oct 2020 11:38:54 -0700 Subject: [PATCH] CI: Enabled race detector in tests --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9858a3c..b2cfbb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ "variables": [ "$BOT_TOKEN" ] }, "script": [ - "go test -v -coverprofile $COV ./...", + "go test -coverprofile -race -v $COV ./...", "go tool cover -func $COV" ] }, @@ -45,7 +45,7 @@ "script": [ "go get ./...", # Test this package along with dismock. - "go test -coverpkg $tested -coverprofile $COV -tags integration -v ./... $dismock", + "go test -coverpkg $tested -coverprofile $COV -tags integration -race -v ./... $dismock", "go tool cover -func $COV" ] }