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.
Reviewed: https:/ /review. openstack. org/458161 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5f2b187ae44 9fe03a5eac3e349 3a6b267d1ed95a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5f2b187ae449fe0 3a5eac3e3493a6b 267d1ed95a
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: Ie3ff6b0020dca8 a5f5292b327aa24 91920e338ef