Skip to content

Commit

Permalink
chore: add tparallel linter (#88)
Browse files Browse the repository at this point in the history
Add the tparallel linter, which checks that subtests of a parallel
test also run in parallel.
  • Loading branch information
jawnsy committed Jan 29, 2022
1 parent a193a08 commit 599ea2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ linters:
- staticcheck
- structcheck
- tenv
- tparallel
- typecheck
- unconvert
- unused
Expand Down
2 changes: 2 additions & 0 deletions database/pubsub_memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func TestPubsubMemory(t *testing.T) {
t.Parallel()

t.Run("Memory", func(t *testing.T) {
t.Parallel()

pubsub := database.NewPubsubInMemory()
event := "test"
data := "testing"
Expand Down

0 comments on commit 599ea2a

Please sign in to comment.