Content-Length: 263768 | pFad | http://github.com/coder/coder/commit/0bc49ff5ae1202bfb2853a6c080801738f54ff49

EF test: fix flake in TestRoleSyncTable with test cases sharing resource… · coder/coder@0bc49ff · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coder/coder/commit/0bc49ff5ae1202bfb2853a6c080801738f54ff49

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy