You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coverage of MemcachePool.acquire() reconnect failure is flaky #527
pool.py lines 74–76 (putting the slot back when opening a replacement connection fails) have no test that targets them. They're only covered when a timeout in test_acquire_task_cancellation happens to land during a reconnect, so Codecov reports them covered on some runs and missed on others, even on master:
This shows up as "lost coverage" on unrelated PRs (e.g. #525).
A test that puts a broken connection in the pool and makes _create_new_conn() raise would cover it on every run and check that the pool keeps its slot. I can open a PR.
Activity