Skip to content

Commit

Permalink
chore: add race flag to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 23, 2024
1 parent d97a015 commit e107418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
go-version-file: "./go.mod"
- name: Run tests
run: mkdir frontend/dist && touch frontend/dist/tmp && go test ./...
run: mkdir frontend/dist && touch frontend/dist/tmp && go test -race ./...
- name: Docker build
if: github.actor != 'dependabot[bot]'
uses: mr-smithers-excellent/docker-build-push@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
node-version: "20.x"

- name: Run tests
run: mkdir frontend/dist && touch frontend/dist/tmp && go test ./...
run: mkdir frontend/dist && touch frontend/dist/tmp && go test -race ./...

- name: Build frontend
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ _If you get a blank screen, try running in your normal terminal (outside of vsco

### Testing

$ go test ./...
$ go test -race ./...

#### Test matching regular expression

$ go test ./... -run TestHandleGetInfoEvent
$ go test -race ./... -run TestHandleGetInfoEvent

### Profiling

Expand Down

0 comments on commit e107418

Please sign in to comment.