[test] Call cmd.Start and cmd.Wait separately to avoid triggering race detector (#616)

* [test] Call cmd.Start and cmd.Wait separately to avoid triggering race detector

* [test] Enable race detector for tests
This commit is contained in:
Jerome Froelich 2017-07-08 14:15:40 -04:00 committed by Ben Kochie
commit cb14fff6c6
2 changed files with 6 additions and 2 deletions

View file

@ -43,7 +43,7 @@ style:
test: collector/fixtures/sys/.unpacked
@echo ">> running tests"
@$(GO) test -short $(pkgs)
@$(GO) test -short -race $(pkgs)
collector/fixtures/sys/.unpacked: collector/fixtures/sys.ttar
./ttar -C collector/fixtures -x -f collector/fixtures/sys.ttar