Yan Xu created MESOS-827:
----------------------------
Summary: Create LOOP_FOR(duration) macro to guard testing loop
from running indefinitely
Key: MESOS-827
URL: https://issues.apache.org/jira/browse/MESOS-827
Project: Mesos
Issue Type: Improvement
Components: test
Reporter: Yan Xu
Assignee: Yan Xu
Fix For: 0.16.0
We have tests that include loops when we are uncertain how long the expected
condition will be met:
e.g.
while (future.isPending()) {
Clock::advance(...);
...
}
or even simply:
AWAIT_READY(...) when the Clock is paused.
This is dangerous because if the expectation is set incorrectly the test can
run forever with logs written unboundedly.
--
This message was sent by Atlassian JIRA
(v6.1#6144)