Closed aiven-sal closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.12%. Comparing base (
f520399
) to head (08e8f9e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
You can't guarantee that a blocking operation with a timeout will not take more than timeout+delta, unless you have an RTOS and you are not using python. If you rely on the fact that this timeouts will return "on time" you already have a bug in your code.
In fact, I'm not sure it makes any sense at all to check how much time passed in those tests, but if this commit fixes the flaky tests we can leave them. If they fail again, I'll just drop them completely. The actual amount of time that those operation take is completely outside of our control and influenced by stuff (i.e. other processes running on the machine) that have nothing to do with valkey-py.
Description of change
Make some tests less likely to fail. Maybe we should just drop these tests. But let's see if we can make them less flaky.