Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix unit test context
  • Loading branch information
SasSwart committed Jul 30, 2025
commit efdfe9fa5df2198543c78fbd11f7e1f99e3fea30
4 changes: 2 additions & 2 deletions enterprise/coderd/prebuilds/membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import (
func TestReconcileAll(t *testing.T) {
t.Parallel()

// nolint:gocritic // Reconciliation happens as prebuilds system user, not a human user.
ctx := dbauthz.AsPrebuildsOrchestrator(testutil.Context(t, testutil.WaitLong))
clock := quartz.NewMock(t)

// Helper to build a minimal Preset row belonging to a given org.
Expand Down Expand Up @@ -82,6 +80,8 @@ func TestReconcileAll(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

// nolint:gocritic // Reconciliation happens as prebuilds system user, not a human user.
ctx := dbauthz.AsPrebuildsOrchestrator(testutil.Context(t, testutil.WaitLong))
_, db := coderdtest.NewWithDatabase(t, nil)

defaultOrg, err := db.GetDefaultOrganization(ctx)
Expand Down
Loading