Skip to content

test: do not run memory race test in parallel #17582

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 4 commits into from
Apr 28, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
Emyrk committed Apr 28, 2025
commit 00fff8c1dd926d9dc988dcde0c736e58cd31a29d
2 changes: 0 additions & 2 deletions coderd/idpsync/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
})
}

func TestGroupSyncTable(t *testing.T) {

Check failure on line 68 in coderd/idpsync/group_test.go

View workflow job for this annotation

GitHub Actions / lint

TestGroupSyncTable's subtests should call t.Parallel (tparallel)
t.Parallel()

// Last checked, takes 30s with postgres on a fast machine.
Expand Down Expand Up @@ -246,14 +246,13 @@
},
}

for _, tc := range testCases {

Check failure on line 249 in coderd/idpsync/group_test.go

View workflow job for this annotation

GitHub Actions / lint

Range statement for test TestGroupSyncTable missing the call to method parallel in test Run (paralleltest)
tc := tc
// The final test, "AllTogether", cannot run in parallel.
// These tests are nearly instant using the memory db, so
// this is still fast without being in parallel.
//nolint:paralleltest, tparallel
t.Run(tc.Name, func(t *testing.T) {

db, _ := dbtestutil.NewDB(t)
manager := runtimeconfig.NewManager()
s := idpsync.NewAGPLSync(slogtest.Make(t, &slogtest.Options{}),
Expand Down Expand Up @@ -294,7 +293,6 @@
// debug a single test case.
//nolint:paralleltest, tparallel // This should run after all the individual tests
t.Run("AllTogether", func(t *testing.T) {

db, _ := dbtestutil.NewDB(t)
manager := runtimeconfig.NewManager()
s := idpsync.NewAGPLSync(slogtest.Make(t, &slogtest.Options{}),
Expand Down
Loading