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)
pull/14/head
Lubomír Sedlář 10 months ago committed by soksanichenko
parent 02b3adbaeb
commit 46216b4f17

@ -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 = [

Loading…
Cancel
Save