[
https://issues.apache.org/jira/browse/MESOS-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828230#comment-13828230
]
Benjamin Mahler commented on MESOS-827:
---------------------------------------
The latter case won't fe fixed by LOOP_FOR right? I think AWAIT_READY should
depend on the system clock time rather than the libprocess Clock.
> 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)