commit b69f2ca7b2bb6bf5788b16fd21800f53a6ec4807
Author: Russell Bryant <email address hidden>
Date: Thu Jan 23 16:03:37 2014 -0500
Make test_poll_volume_usage_with_data more reliable
This test includes 2 calls to time.time(). It assumes that the result
from the second call may be greater than the first. This isn't
definietly true and we see periodic failures of this test in the gate as
a result.
Change the test to not worry about the specific time value that gets
set. We set _last_vol_usage_poll to 0 before calling the function under
test. We really only need to check that it got set to some value after
calling the function under test. This tweak should make the test pass
consistently.
Change-Id: I6c01d2958cf671c29622562689a15ca1ddea0a3c
Closes-bug: #1270693
(cherry picked from commit 7e18d67cc9c96a14e0ca24a41820441e41457738)
Reviewed: https:/ /review. openstack. org/68920 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b69f2ca7b2b b6bf5788b16fd21 800f53a6ec4807
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit b69f2ca7b2bb6bf 5788b16fd21800f 53a6ec4807
Author: Russell Bryant <email address hidden>
Date: Thu Jan 23 16:03:37 2014 -0500
Make test_poll_ volume_ usage_with_ data more reliable
This test includes 2 calls to time.time(). It assumes that the result
from the second call may be greater than the first. This isn't
definietly true and we see periodic failures of this test in the gate as
a result.
Change the test to not worry about the specific time value that gets usage_poll to 0 before calling the function under
set. We set _last_vol_
test. We really only need to check that it got set to some value after
calling the function under test. This tweak should make the test pass
consistently.
Change-Id: I6c01d2958cf671 c29622562689a15 ca1ddea0a3c 4e0ca24a4182044 1e41457738)
Closes-bug: #1270693
(cherry picked from commit 7e18d67cc9c96a1