[
https://issues.apache.org/jira/browse/MESOS-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838164#comment-13838164
]
Benjamin Mahler commented on MESOS-827:
---------------------------------------
Should we mark as won't fix in favor of the AWAIT_READY fix?
> 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)