tests: Fix mocking of sleep calls with tenacity 8.4.2
Latest tenacity release adds some internal changes that broke the mocking of sleep calls in tests.
Fix it by directly mocking time.sleep (was not working previously).
Latest tenacity release adds some internal changes that broke the mocking of sleep calls in tests.
Fix it by directly mocking time.sleep (was not working previously).