chore: add tparallel linter (#88)

Add the tparallel linter, which checks that subtests of a parallel
test also run in parallel.
This commit is contained in:
Jonathan Yu 2022-01-29 12:21:16 -08:00 committed by GitHub
parent a193a089b8
commit 599ea2a331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,7 @@ linters:
- staticcheck
- structcheck
- tenv
- tparallel
- typecheck
- unconvert
- unused

View File

@ -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"