diff --git a/coderd/autobuild/lifecycle_executor_test.go b/coderd/autobuild/lifecycle_executor_test.go index c5362ef138..1821a76106 100644 --- a/coderd/autobuild/lifecycle_executor_test.go +++ b/coderd/autobuild/lifecycle_executor_test.go @@ -18,7 +18,6 @@ import ( "github.com/coder/coder/v2/coderd/coderdtest" "github.com/coder/coder/v2/coderd/database" "github.com/coder/coder/v2/coderd/database/dbauthz" - "github.com/coder/coder/v2/coderd/notifications/notiffake" "github.com/coder/coder/v2/coderd/schedule" "github.com/coder/coder/v2/coderd/schedule/cron" "github.com/coder/coder/v2/coderd/util/ptr" @@ -116,7 +115,7 @@ func TestExecutorAutostartTemplateUpdated(t *testing.T) { tickCh = make(chan time.Time) statsCh = make(chan autobuild.Stats) logger = slogtest.Make(t, &slogtest.Options{IgnoreErrors: !tc.expectStart}).Leveled(slog.LevelDebug) - enqueuer = notiffake.FakeNotificationEnqueuer{} + enqueuer = testutil.FakeNotificationEnqueuer{} client = coderdtest.New(t, &coderdtest.Options{ AutobuildTicker: tickCh, IncludeProvisionerDaemon: true, diff --git a/coderd/coderdtest/coderdtest.go b/coderd/coderdtest/coderdtest.go index 0d787b98e8..efe9b4fc52 100644 --- a/coderd/coderdtest/coderdtest.go +++ b/coderd/coderdtest/coderdtest.go @@ -65,7 +65,6 @@ import ( "github.com/coder/coder/v2/coderd/gitsshkey" "github.com/coder/coder/v2/coderd/httpmw" "github.com/coder/coder/v2/coderd/notifications" - "github.com/coder/coder/v2/coderd/notifications/notiffake" "github.com/coder/coder/v2/coderd/rbac" "github.com/coder/coder/v2/coderd/schedule" "github.com/coder/coder/v2/coderd/telemetry" @@ -243,7 +242,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can } if options.NotificationsEnqueuer == nil { - options.NotificationsEnqueuer = new(notiffake.FakeNotificationEnqueuer) + options.NotificationsEnqueuer = new(testutil.FakeNotificationEnqueuer) } accessControlStore := &atomic.Pointer[dbauthz.AccessControlStore]{} diff --git a/coderd/notifications/notiffake/notiffake.go b/testutil/notifications.go similarity index 97% rename from coderd/notifications/notiffake/notiffake.go rename to testutil/notifications.go index 2435d86162..44ce209898 100644 --- a/coderd/notifications/notiffake/notiffake.go +++ b/testutil/notifications.go @@ -1,4 +1,4 @@ -package notiffake +package testutil import ( "context"