merlimat commented on a change in pull request #4071: [Issue
2461][pulsar-client-cpp] Modified CMake files and source to enable compilation
on Windows
URL: https://github.com/apache/pulsar/pull/4071#discussion_r276868698
##########
File path: pulsar-client-cpp/tests/BackoffTest.cc
##########
@@ -51,7 +53,7 @@ TEST(BackoffTest, firstBackoffTimerTest) {
Backoff backoff(milliseconds(100), seconds(60), milliseconds(1900));
ASSERT_EQ(backoff.next().total_milliseconds(), 100);
boost::posix_time::ptime firstBackOffTime =
PulsarFriend::getFirstBackoffTime(backoff);
- usleep(300 * 1000);
+ boost::this_thread::sleep(boost::posix_time::milliseconds(300));
Review comment:
We could also `std::this_thread::sleep_for()` instead of boost
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services