mirror of https://github.com/coder/coder.git
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:
parent
a193a089b8
commit
599ea2a331
|
@ -241,6 +241,7 @@ linters:
|
|||
- staticcheck
|
||||
- structcheck
|
||||
- tenv
|
||||
- tparallel
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unused
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue