cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request: Marvin: Replace a timer.sleep(30) with pu...
Date Tue, 03 May 2016 19:05:41 GMT
Github user jburwell commented on the pull request:

    https://github.com/apache/cloudstack/pull/1529#issuecomment-216632803
  
    @mike-tutkowski you may want to consider refactoring to use the [``wait_until`` function](https://github.com/apache/cloudstack/blob/12d8e53dd54d83242b3dabf2151249ab7963d5a8/tools/marvin/marvin/lib/utils.py#L527-L543)
was recently added to utils.py.   It provides a concise, Pythonic way of waiting for a condition.
 For example of its usage, see the  [test_host_maintenance.py](https://github.com/apache/cloudstack/blob/12d8e53dd54d83242b3dabf2151249ab7963d5a8/test/integration/component/test_host_maintenance.py#L181)
where it is used to wait until VM migration has completed before proceeding with the test.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message