Skip to content

Commit cd90dff

Browse files
committed
remove some parallel tests
1 parent ac7399a commit cd90dff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

coderd/idpsync/group_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,11 @@ func TestGroupSyncTable(t *testing.T) {
248248

249249
for _, tc := range testCases {
250250
tc := tc
251+
// The final test, "AllTogether", cannot run in parallel.
252+
// These tests are nearly instant using the memory db, so
253+
// this is still fast without being in parallel.
254+
//nolint:paralleltest, tparallel
251255
t.Run(tc.Name, func(t *testing.T) {
252-
t.Parallel()
253256

254257
db, _ := dbtestutil.NewDB(t)
255258
manager := runtimeconfig.NewManager()
@@ -289,8 +292,8 @@ func TestGroupSyncTable(t *testing.T) {
289292
// deployment. This tests all organizations being synced together.
290293
// The reason we do them individually, is that it is much easier to
291294
// debug a single test case.
295+
//nolint:paralleltest, tparallel // This should run after all the individual tests
292296
t.Run("AllTogether", func(t *testing.T) {
293-
t.Parallel()
294297

295298
db, _ := dbtestutil.NewDB(t)
296299
manager := runtimeconfig.NewManager()

0 commit comments

Comments
 (0)