Tests: Fix PrivRootwrapTestCase failure
On a slow enough machine, this can take more than 0.3 seconds to execute. Change-Id: I3c2874855c2f061e93ecd088c516696366350833
This commit is contained in:
parent
48097057bb
commit
4635996f87
|
@ -98,7 +98,7 @@ class PrivRootwrapTestCase(base.TestCase):
|
|||
interval=2, backoff_rate=3, attempts=3,
|
||||
on_execute=on_execute, on_completion=on_completion)
|
||||
t1 = time.time()
|
||||
self.assertLess(t1 - t0, 0.3)
|
||||
self.assertLess(t1 - t0, 0.6)
|
||||
sleep_mock.assert_has_calls([mock.call(0), mock.call(6), mock.call(0),
|
||||
mock.call(18), mock.call(0)])
|
||||
expected_calls = [mock.call(args[0][0])
|
||||
|
|
Loading…
Reference in New Issue