From df6664098d61069b3cbb8d78efc11474a5fd4e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 23 Nov 2022 10:49:09 +0100 Subject: [PATCH] Speed up tests by 30 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The retry test for CTS doesn't actually need to wait. Let's mock the sleep function. Signed-off-by: Lubomír Sedlář --- tests/test_compose.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_compose.py b/tests/test_compose.py index a0070488..493c1127 100644 --- a/tests/test_compose.py +++ b/tests/test_compose.py @@ -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 = [