Repository navigation
increase test timeouts for OS X - #28
Conversation
|
can we just run the same CI but with a retest-until-fail 50 rather than a restest until pass ? (just to have an idea of how flaky it is because as you said one run doesnt say much) |
wjwwood
left a comment
There was a problem hiding this comment.
this is fine by me if it resolves the issue, but I provided some other options in my line comment as well
| RCUTILS_STEADY_TIME, 50 /* ms */, "throttled message %d", i) | ||
| using namespace std::chrono_literals; | ||
| std::this_thread::sleep_for(20ms); | ||
| std::this_thread::sleep_for(30ms); |
There was a problem hiding this comment.
Another option is to put the whole test in a loop, retrying a limited number of times. Presumably if it passes any of the attempts then there is no issue. This test is really testing the logic, not the timeliness, of the sleep_for function.
Yet another option is to measure the time you actually sleep for (measure around the sleep_for function call) and accumulate the total since the first call. Then each time you update the total you can figure out if the next i should be in the output or not. This would at least be slightly more robust to a overrun on sleep_for (remember it only guarantees that it returns after the period, not how close to it).
|
Since it passed with |
(cherry picked from commit 55de2e1) Co-authored-by: Błażej Sowa <[email protected]>
Not that a single run says much...
Fixes #27.