heronr 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_r276912793
 
 

 ##########
 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:
   I did go ahead and switch everything to std::this_thread::sleep_for as you 
suggested

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to