Skip to content

Commit

Permalink
Increase CFT-Delivery unit-tests timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Barger <[email protected]>
  • Loading branch information
C0rWin authored and denyeart committed Oct 2, 2023
1 parent a88e607 commit e74253a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/peer/blocksprovider/deliverer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ var _ = Describe("CFT-Deliverer", func() {

It("hits the maximum sleep time value in an exponential fashion and retries until exceeding the max retry duration", func() {
d.MaxRetryDurationExceededHandler = func() (stopRetries bool) { return true }
Eventually(fakeSleeper.SleepCallCount).Should(Equal(380))
Eventually(fakeSleeper.SleepCallCount, 5*time.Second).Should(Equal(380))
Expect(fakeSleeper.SleepArgsForCall(25)).To(Equal(9539 * time.Millisecond))
Expect(fakeSleeper.SleepArgsForCall(26)).To(Equal(10 * time.Second))
Expect(fakeSleeper.SleepArgsForCall(27)).To(Equal(10 * time.Second))
Expand All @@ -291,7 +291,7 @@ var _ = Describe("CFT-Deliverer", func() {

It("hits the maximum sleep time value in an exponential fashion and retries indefinitely", func() {
d.MaxRetryDurationExceededHandler = func() (stopRetries bool) { return false }
Eventually(fakeSleeper.SleepCallCount).Should(Equal(500))
Eventually(fakeSleeper.SleepCallCount, 5*time.Second).Should(Equal(500))
Expect(fakeSleeper.SleepArgsForCall(25)).To(Equal(9539 * time.Millisecond))
Expect(fakeSleeper.SleepArgsForCall(26)).To(Equal(10 * time.Second))
Expect(fakeSleeper.SleepArgsForCall(27)).To(Equal(10 * time.Second))
Expand Down

0 comments on commit e74253a

Please sign in to comment.