merlimat opened a new pull request #6294: [C++] Improve LatchTest.testTimedWait 
timing
URL: https://github.com/apache/pulsar/pull/6294
 
 
   ### Motivation
   
   Fixes #630 
   
   The timing on the test is way too tight, if there's a ~20millis delay, the 
test is failing.
   
   ```
    RUN      ] LatchTest.testTimedWait
   2019-12-27 07:03:51.132 INFO  LatchTest:43 | Service service2 is up
   2019-12-27 07:03:51.144 INFO  LatchTest:43 | Service service1 is up
   /pulsar/pulsar-client-cpp/tests/LatchTest.cc:74: Failure
   Value of: latch1.wait(std::chrono::milliseconds(70))
    Actual: false
    Expected: true
   2019-12-27 07:03:51.160 INFO  LatchTest:43 | Service service3 is up
   [  FAILED  ] LatchTest.testTimedWait (78 ms)
   [----------] 1 test from LatchTest (78 ms total)
   [----------] Global test environment tear-down
   [==========] 1 test from 1 test case ran. (78 ms total)
   [  PASSED  ] 0 tests.
   [  FAILED  ] 1 test, listed below:
   [  FAILED  ] LatchTest.testTimedWait
    1 FAILED TEST
   ```

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

Reply via email to