Tests: Fix PrivRootwrapTestCase failure

On a slow enough machine, this can take more than 0.3
seconds to execute.

Change-Id: I3c2874855c2f061e93ecd088c516696366350833
(cherry picked from commit 4635996f87)
This commit is contained in:
Eric Harney 2018-12-05 10:30:35 -05:00 committed by Ivan Kolodyazhny
parent 4c94477cb5
commit ba147f406c
1 changed files with 1 additions and 1 deletions

View File

@ -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])