From e74253a7e12f8eeef76041532c109fe592a2cec6 Mon Sep 17 00:00:00 2001 From: Artem Barger Date: Mon, 2 Oct 2023 14:08:30 +0300 Subject: [PATCH] Increase CFT-Delivery unit-tests timeout Signed-off-by: Artem Barger --- internal/pkg/peer/blocksprovider/deliverer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/peer/blocksprovider/deliverer_test.go b/internal/pkg/peer/blocksprovider/deliverer_test.go index 5907bbd45e4..9ae2799955a 100644 --- a/internal/pkg/peer/blocksprovider/deliverer_test.go +++ b/internal/pkg/peer/blocksprovider/deliverer_test.go @@ -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)) @@ -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))