Skip to content

Commit

Permalink
[C++] Improved time check expectation on BackoffTest.firstBackoffTime…
Browse files Browse the repository at this point in the history
…rTest (apache#6295)
  • Loading branch information
merlimat authored Feb 11, 2020
1 parent 7cb61fe commit 22f5957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar-client-cpp/tests/BackoffTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 22f5957

Please sign in to comment.