Skip to content

Test that acquire keeps its pool slot when reconnecting fails - #528

Merged
Dreamsorcerer merged 1 commit into
aio-libs:masterfrom
RayBB:test/pool-reconnect-failure
Nov 23, 2026
Merged

Dreamsorcerer merged 1 commit into
aio-libs:masterfrom
RayBB:test/pool-reconnect-failure

Conversation

@RayBB

@RayBB RayBB commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #527.

Adds a test that puts a broken connection in the pool, makes the reconnect in acquire() fail, and checks that the error propagates and the pool keeps its slot. Until now these lines were only covered when a wait_for timeout in test_acquire_task_cancellation happened to cancel a task during a reconnect (about 1 run in 4 locally), so coverage flipped between runs.

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.97%. Comparing base (7f3eb46) to head (950fbc8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #528      +/-   ##
==========================================
+ Coverage   97.47%   97.97%   +0.49%     
==========================================
  Files          10       10              
  Lines         992     1037      +45     
  Branches       54       57       +3     
==========================================
+ Hits          967     1016      +49     
+ Misses         14       12       -2     
+ Partials       11        9       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5 Tier: apex

[Low impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "Test that acquire keeps its pool slot wh..." · Reviewed by Greptile

@Dreamsorcerer
Dreamsorcerer merged commit 010ee63 into aio-libs:master Nov 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage of MemcachePool.acquire() reconnect failure is flaky

2 participants