Run all Go tests with flag -race

This commit is contained in:
Jakub Warczarek 2020-07-03 18:45:12 +02:00
parent 31407141cf
commit a9d023d567
1 changed files with 8 additions and 8 deletions

View File

@ -89,7 +89,7 @@ telegraf:
.PHONY: test
test:
go test -short ./...
go test -race -short ./...
.PHONY: fmt
fmt:
@ -107,12 +107,12 @@ fmtcheck:
.PHONY: test-windows
test-windows:
go test -short ./plugins/inputs/ping/...
go test -short ./plugins/inputs/win_perf_counters/...
go test -short ./plugins/inputs/win_services/...
go test -short ./plugins/inputs/procstat/...
go test -short ./plugins/inputs/ntpq/...
go test -short ./plugins/processors/port_name/...
go test -race -short ./plugins/inputs/ping/...
go test -race -short ./plugins/inputs/win_perf_counters/...
go test -race -short ./plugins/inputs/win_services/...
go test -race -short ./plugins/inputs/procstat/...
go test -race -short ./plugins/inputs/ntpq/...
go test -race -short ./plugins/processors/port_name/...
.PHONY: vet
vet:
@ -139,7 +139,7 @@ check: fmtcheck vet
.PHONY: test-all
test-all: fmtcheck vet
go test ./...
go test -race ./...
.PHONY: check-deps
check-deps: