Skip to content

Commit

Permalink
feat(test): run test more than once
Browse files Browse the repository at this point in the history
This catches race conditions better, since they don't happen on each
run.
  • Loading branch information
nobe4 committed Jan 8, 2025
1 parent 920158f commit 8373b8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Test
run: |
go generate ./...
go test -race -cover ./...
go test -race -count 10 -cover ./...
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,4 +107,4 @@ jobs:
run: go generate ./...

- name: Launch golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v6
2 changes: 1 addition & 1 deletion script/watch-test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
find . -not -path './.git/*' -not -path './dist/*' | \
entr -c \
bash -c '
go test -cover -coverprofile=coverage ./... &&
go test -race -count 10 -race -count 10 -cover -coverprofile=coverage ./... &&
go tool cover -html=coverage -o coverage.html
'

0 comments on commit 8373b8e

Please sign in to comment.