Skip to content

Commit

Permalink
test: priority decrement on notification retries
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Sep 17, 2024
1 parent 3f6a5ae commit 0bcd92d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions notification/notification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ var _ = ginkgo.Describe("Notifications", ginkgo.Ordered, func() {
Expect(err).To(BeNil())
return event.Attempts
}, "10s", "200ms").Should(Equal(4))

var event models.Event
err := DefaultContext.DB().Where("name = 'notification.send'").First(&event).Error
Expect(err).To(BeNil())
Expect(event.Priority).To(Equal(-4))
})

ginkgo.It("only one notification must have been sent", func() {
Expand Down

0 comments on commit 0bcd92d

Please sign in to comment.