From f7eb3688ddcb7d555df91e97ce8804421378e3b4 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Thu, 17 Feb 2022 09:17:47 -0800 Subject: [PATCH] Update IXExponentialBackoffTest.cpp --- test/IXExponentialBackoffTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/IXExponentialBackoffTest.cpp b/test/IXExponentialBackoffTest.cpp index 74d15c72..417f84d6 100644 --- a/test/IXExponentialBackoffTest.cpp +++ b/test/IXExponentialBackoffTest.cpp @@ -29,7 +29,10 @@ namespace ix REQUIRE(calculateRetryWaitMilliseconds(20, 10000, 100) == 10000); REQUIRE(calculateRetryWaitMilliseconds(25, 10000, 100) == 10000); - // FIXME bug when retrycount > 25 + // Things get special after 26 retries + REQUIRE(calculateRetryWaitMilliseconds(26, 10000, 100) == 10000); + REQUIRE(calculateRetryWaitMilliseconds(27, 10000, 100) == 10000); + REQUIRE(calculateRetryWaitMilliseconds(27, 10000, 100) == 10000); } }