Skip to content

Commit 0bc49ff

Browse files
authored
test: fix flake in TestRoleSyncTable with test cases sharing resources (#17441)
The test case definition shares maps that can have concurrent access if run in parallel.
1 parent 7f6e513 commit 0bc49ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/idpsync/role_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ func TestRoleSyncTable(t *testing.T) {
225225
// deployment. This tests all organizations being synced together.
226226
// The reason we do them individually, is that it is much easier to
227227
// debug a single test case.
228+
//nolint:paralleltest, tparallel // This should run after all the individual tests
228229
t.Run("AllTogether", func(t *testing.T) {
229-
t.Parallel()
230-
231230
db, _ := dbtestutil.NewDB(t)
232231
manager := runtimeconfig.NewManager()
233232
s := idpsync.NewAGPLSync(slogtest.Make(t, &slogtest.Options{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy