Skip to content

Commit 9f66169

Browse files
refactor: remove PrebuildsOrchestrator context from claim tests
1 parent 087bd20 commit 9f66169

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

enterprise/coderd/prebuilds/claim_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616

1717
"github.com/coder/coder/v2/coderd/coderdtest"
1818
"github.com/coder/coder/v2/coderd/database"
19-
"github.com/coder/coder/v2/coderd/database/dbauthz"
2019
"github.com/coder/coder/v2/coderd/database/dbtestutil"
2120
agplprebuilds "github.com/coder/coder/v2/coderd/prebuilds"
2221
"github.com/coder/coder/v2/coderd/rbac"
@@ -155,8 +154,6 @@ func TestClaimPrebuild(t *testing.T) {
155154

156155
userClient, user := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID, rbac.RoleMember())
157156

158-
ctx = dbauthz.AsPrebuildsOrchestrator(ctx)
159-
160157
// Given: the reconciliation state is snapshot.
161158
state, err := reconciler.SnapshotState(ctx, spy)
162159
require.NoError(t, err)
@@ -429,8 +426,6 @@ func TestClaimPrebuild_CheckDifferentErrors(t *testing.T) {
429426

430427
userClient, user := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID, rbac.RoleMember())
431428

432-
ctx = dbauthz.AsPrebuildsOrchestrator(ctx)
433-
434429
// Given: the reconciliation state is snapshot.
435430
state, err := reconciler.SnapshotState(ctx, errorStore)
436431
require.NoError(t, err)

0 commit comments

Comments
 (0)