diff --git a/clair-error/notifications.go b/clair-error/notifications.go index d4df0de3aa..083618ab44 100644 --- a/clair-error/notifications.go +++ b/clair-error/notifications.go @@ -31,7 +31,7 @@ func (e ErrBadNotification) Unwrap() error { return e.E } -// ErrDeleteNotification indicates an error while deleting notifcations. +// ErrDeleteNotification indicates an error while deleting notifications. // The wrapped error will contain further details. type ErrDeleteNotification struct { NotificationID uuid.UUID diff --git a/notifier/postgres/e2e_test.go b/notifier/postgres/e2e_test.go index a0d37a7ec4..d8fcdffe27 100644 --- a/notifier/postgres/e2e_test.go +++ b/notifier/postgres/e2e_test.go @@ -94,7 +94,7 @@ func (e *e2e) Run(ctx context.Context, t *testing.T) { for _, sub := range [...]subtest{ {name: "PutNotifications", do: e.PutNotifications}, {name: "Created", do: e.Created}, - {name: "Notifications", do: e.Notifcations}, + {name: "Notifications", do: e.Notifications}, {name: "SetDelivered", do: e.SetDelivered}, {name: "SetDeliveryFailed", do: e.SetDeliveryFailed}, {name: "SetDeleted", do: e.SetDeleted}, @@ -168,7 +168,7 @@ func (e *e2e) Created(ctx context.Context) func(*testing.T) { // Notifications confirms the correct notifications were returned from the // database when providing the notification ID. -func (e *e2e) Notifcations(ctx context.Context) func(*testing.T) { +func (e *e2e) Notifications(ctx context.Context) func(*testing.T) { return func(t *testing.T) { ctx := zlog.Test(ctx, t) want := e.notificationID diff --git a/notifier/processor_safe_test.go b/notifier/processor_safe_test.go index 081959bb33..6644f6b800 100644 --- a/notifier/processor_safe_test.go +++ b/notifier/processor_safe_test.go @@ -163,7 +163,7 @@ func testUnsafeStaleUOID(t *testing.T) { } } -// testSafeDuplications confirms the guard against creating +// testUnsafeDuplications confirms the guard against creating // duplicate notifications works correctly. func testUnsafeDuplications(t *testing.T) { ctx := zlog.Test(context.Background(), t)