From 22f59572d441d095c7cdefc0c781b9eb73269b3d Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Tue, 11 Feb 2020 15:19:26 -0800 Subject: [PATCH] [C++] Improved time check expectation on BackoffTest.firstBackoffTimerTest (#6295) --- pulsar-client-cpp/tests/BackoffTest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsar-client-cpp/tests/BackoffTest.cc b/pulsar-client-cpp/tests/BackoffTest.cc index 094548d47539c..8ecf5665a9740 100644 --- a/pulsar-client-cpp/tests/BackoffTest.cc +++ b/pulsar-client-cpp/tests/BackoffTest.cc @@ -59,7 +59,7 @@ TEST(BackoffTest, firstBackoffTimerTest) { backoff.reset(); ASSERT_EQ(backoff.next().total_milliseconds(), 100); diffBackOffTime = PulsarFriend::getFirstBackoffTime(backoff) - firstBackOffTime; - ASSERT_TRUE(diffBackOffTime >= milliseconds(300) && diffBackOffTime < milliseconds(310)); + ASSERT_TRUE(diffBackOffTime >= milliseconds(300) && diffBackOffTime < seconds(1)); } TEST(BackoffTest, basicTest) {