Skip to content

Commit 0e3cc40

Browse files
fix: minor fixes
1 parent 37173b0 commit 0e3cc40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

enterprise/coderd/prebuilds/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func (c *StoreReconciler) notifyPrebuildFailureLimitReached(ctx context.Context,
491491

492492
// Send notification to template admins.
493493
if c.notifEnq == nil {
494-
c.logger.Warn(ctx, "notification enqueuer not set, cannot send resource replacement notification(s)")
494+
c.logger.Warn(ctx, "notification enqueuer not set, cannot send prebuild is hard limited notification(s)")
495495
return nil
496496
}
497497

enterprise/coderd/prebuilds/reconcile_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ func TestSkippingHardLimitedPresets(t *testing.T) {
758758

759759
// When hard limit is reached, a notification should be sent.
760760
matching := fakeEnqueuer.Sent(func(notification *notificationstest.FakeNotification) bool {
761-
if !assert.Equal(t, notification.TemplateID, notifications.PrebuildFailureLimitReached, "unexpected template") {
761+
if !assert.Equal(t, notifications.PrebuildFailureLimitReached, notification.TemplateID, "unexpected template") {
762762
return false
763763
}
764764

0 commit comments

Comments
 (0)