8000 chore: add tparallel linter by jawnsy · Pull Request #88 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: add tparallel linter #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: add tparallel linter
Add the tparallel linter, which checks that subtests of a parallel
test also run in parallel.
  • Loading branch information
jawnsy committed Jan 29, 2022
commit 99ad7362578531d80d5ae83949a03b506182195e
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