Skip to content

Commit

Permalink
Add test-race task to Makefile
Browse files Browse the repository at this point in the history
This is to workaround a race condition happening on a single MacOS dev machine when running make test. This eventually has to be investigated and resolved.

Signed-off-by: Marco Franssen <marco.franssen@philips.com>
  • Loading branch information
marcofranssen committed Dec 9, 2021
1 parent e372ce4 commit 6b4cbd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Test
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: make test
run: make test-race

- name: Coverage
env:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ lint: $(GO_PATH)/bin/goimports $(GO_PATH)/bin/golint ## runs linting

.PHONY: test
test: ## runs the tests
go test -v -count=1 ./...

.PHONY: test-race
test-race: ## runs the tests
go test -race -v -count=1 ./...

coverage.out:
Expand Down

0 comments on commit 6b4cbd9

Please sign in to comment.