Speed up tests by 30 seconds

The retry test for CTS doesn't actually need to wait. Let's mock the
sleep function.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit df6664098d)
This commit is contained in:
Lubomír Sedlář 2022-11-23 10:49:09 +01:00 committed by soksanichenko
parent 02b3adbaeb
commit 46216b4f17

View File

@ -812,6 +812,7 @@ class TracebackTest(unittest.TestCase):
class RetryRequestTest(unittest.TestCase):
@mock.patch("time.sleep", new=lambda x: x)
@mock.patch("pungi.compose.requests")
def test_retry_timeout(self, mocked_requests):
mocked_requests.post.side_effect = [