Repository navigation
Test that acquire keeps its pool slot when reconnecting fails - #528
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
[Low impact] The PR appears safe to merge. Reviews (1) · Last reviewed commit: "Test that acquire keeps its pool slot wh..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 await_fortimeout intest_acquire_task_cancellationhappened to cancel a task during a reconnect (about 1 run in 4 locally), so coverage flipped between runs.