From 1d13d80d5ac26e78322d6b09ac524018817ae10a Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Thu, 14 Mar 2019 01:04:58 +1100 Subject: Add race test and exclude tests!? --- Makefile | 2 +- lexer_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6ce98bf..7ecc33b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ pkgs := $(shell go list ./...) .PHONY: test test: lint ## Run tests with coverage - go test -short -cover -coverprofile coverage.out $(pkgs) + go test -race -short -cover -coverprofile coverage.out $(pkgs) go tool cover -html=coverage.out -o coverage.html .PHONY: lint diff --git a/lexer_test.go b/lexer_test.go index 1795f7b..798cb3a 100644 --- a/lexer_test.go +++ b/lexer_test.go @@ -1,3 +1,5 @@ +// +build !race + package lexer import ( -- cgit v1.2.3