mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
@ -241,6 +241,7 @@ linters:
|
|||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
- structcheck
|
||||||
- tenv
|
- tenv
|
||||||
|
- tparallel
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- unused
|
- unused
|
||||||
|
@ -14,6 +14,8 @@ func TestPubsubMemory(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
t.Run("Memory", func(t *testing.T) {
|
t.Run("Memory", func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
pubsub := database.NewPubsubInMemory()
|
pubsub := database.NewPubsubInMemory()
|
||||||
event := "test"
|
event := "test"
|
||||||
data := "testing"
|
data := "testing"
|
||||||
|
Reference in New Issue
Block a user