Comment 7 for bug 1683953

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/458161
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5f2b187ae449fe03a5eac3e3493a6b267d1ed95a
Submitter: Jenkins
Branch: master

commit 5f2b187ae449fe03a5eac3e3493a6b267d1ed95a
Author: melanie witt <email address hidden>
Date: Wed Apr 19 16:29:05 2017 +0000

    Mock timeout in test__get_node_console_with_reset_wait_timeout

    This test is failing intermittently because it's waiting for a real
    timeout from BackOffLoopingCall which does an exponential backoff
    each interval. Sometimes the test times out entirely and fails.

    This changes the test to mock BackOffLoopingCall and raise the timeout
    exception to simulate a timeout. The only thing not covered by this is
    calling of the _wait_state() function, but that is covered by other
    unit tests in the file.

    Closes-Bug: #1683953

    Change-Id: Ie3ff6b0020dca8a5f5292b327aa2491920e338ef