Skip to content

Commit 3c26ced

Browse files
chore: remove old test code
1 parent d7f64b7 commit 3c26ced

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

coderd/notifications/notifications_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1864,11 +1864,7 @@ func TestNotificationMethodCannotDefaultToInbox(t *testing.T) {
18641864

18651865
cfg := defaultNotificationsConfig(database.NotificationMethodInbox)
18661866

1867-
// Set the time to a known value.
1868-
mClock := quartz.NewMock(t)
1869-
mClock.Set(time.Date(2024, 1, 15, 9, 0, 0, 0, time.UTC))
1870-
1871-
_, err := notifications.NewStoreEnqueuer(cfg, store, defaultHelpers(), logger.Named("enqueuer"), mClock)
1867+
_, err := notifications.NewStoreEnqueuer(cfg, store, defaultHelpers(), logger.Named("enqueuer"), quartz.NewMock(t))
18721868
require.ErrorIs(t, err, notifications.InvalidDefaultNotificationMethodError{Method: string(database.NotificationMethodInbox)})
18731869
}
18741870

0 commit comments

Comments
 (0)