Skip to content

Commit 06ecc88

Browse files
committed
Add -race flag into go test
This makes it possible to detect data races. Signed-off-by: Haiyan Meng <[email protected]>
1 parent e42c902 commit 06ecc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ golangci-lint run --disable-all \
134134

135135
header_text "running go test"
136136

137-
go test ./pkg/... ./cmd/... -parallel 4
137+
go test -race ./pkg/... ./cmd/... -parallel 4
138138

139139
# ensure that Gopkg.{toml,lock} are up-to-date
140140
header_text "ensuring that Gopkg.{toml,lock} are up to date..."

0 commit comments

Comments
 (0)