}) }) }) }) Describe("Verifying that start messages should be sent", func() { var err error var indexToStart int var pendingMessage models.PendingStartMessage var skipVerification bool JustBeforeEach(func() { timeProvider.TimeToProvide = time.Unix(130, 0) pendingMessage = models.NewPendingStartMessage(time.Unix(100, 0), 30, 10, app.AppGuid, app.AppVersion, indexToStart, 1.0, models.PendingStartMessageReasonInvalid) pendingMessage.SentOn = 0 pendingMessage.SkipVerification = skipVerification store.SavePendingStartMessages( pendingMessage, ) err = sender.Send() }) BeforeEach(func() { err = nil indexToStart = 0 skipVerification = false }) assertMessageWasNotSent := func() { It("should ignore the keep-alive and delete the start message from queue", func() {