@@ -16,7 +16,6 @@ import (
16
16
17
17
"github.com/coder/coder/v2/coderd/coderdtest"
18
18
"github.com/coder/coder/v2/coderd/database"
19
- "github.com/coder/coder/v2/coderd/database/dbauthz"
20
19
"github.com/coder/coder/v2/coderd/database/dbtestutil"
21
20
agplprebuilds"github.com/coder/coder/v2/coderd/prebuilds"
22
21
"github.com/coder/coder/v2/coderd/rbac"
@@ -155,8 +154,6 @@ func TestClaimPrebuild(t *testing.T) {
155
154
156
155
userClient ,user := coderdtest .CreateAnotherUser (t ,client ,owner .OrganizationID ,rbac .RoleMember ())
157
156
158
- ctx = dbauthz .AsPrebuildsOrchestrator (ctx )
159
-
160
157
// Given: the reconciliation state is snapshot.
161
158
state ,err := reconciler .SnapshotState (ctx ,spy )
162
159
require .NoError (t ,err )
@@ -429,8 +426,6 @@ func TestClaimPrebuild_CheckDifferentErrors(t *testing.T) {
429
426
430
427
userClient ,user := coderdtest .CreateAnotherUser (t ,client ,owner .OrganizationID ,rbac .RoleMember ())
431
428
432
- ctx = dbauthz .AsPrebuildsOrchestrator (ctx )
433
-
434
429
// Given: the reconciliation state is snapshot.
435
430
state ,err := reconciler .SnapshotState (ctx ,errorStore )
436
431
require .NoError (t ,err )