Skip to content

Commit 599ea2a

Browse files
authored
chore: add tparallel linter (#88)
Add the tparallel linter, which checks that subtests of a parallel test also run in parallel.
1 parent a193a08 commit 599ea2a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ linters:
241241
- staticcheck
242242
- structcheck
243243
- tenv
244+
- tparallel
244245
- typecheck
245246
- unconvert
246247
- unused

database/pubsub_memory_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ func TestPubsubMemory(t *testing.T) {
1414
t.Parallel()
1515

1616
t.Run("Memory", func(t *testing.T) {
17+
t.Parallel()
18+
1719
pubsub := database.NewPubsubInMemory()
1820
event := "test"
1921
data := "testing"

0 commit comments

Comments
 (0)