tests: Fix mocking of sleep calls with tenacity 8.4.2
Compare changes
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).