From ba147f406c7a34bd9bcc76b916a220f814d82c53 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 5 Dec 2018 10:30:35 -0500 Subject: [PATCH] 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 4635996f879c29044b4c130ff7ba797a9e5e2221) --- os_brick/tests/privileged/test_rootwrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_brick/tests/privileged/test_rootwrap.py b/os_brick/tests/privileged/test_rootwrap.py index cc48f6282..2d94a5a2e 100644 --- a/os_brick/tests/privileged/test_rootwrap.py +++ b/os_brick/tests/privileged/test_rootwrap.py @@ -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])