-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling retry_persistent_connection in Tests #9396
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9396 +/- ##
=======================================
Coverage 98.57% 98.57%
=======================================
Files 107 107
Lines 35048 35050 +2
Branches 4150 4150
=======================================
+ Hits 34547 34549 +2
Misses 334 334
Partials 167 167
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @Dreamsorcerer, I will make all the suggested changes. I saw many tests are using this ClientSession class, should I make these changes everywhere..? Also, how to pass the Label/Backport Label Check? Thanks for the inputs |
Hi @Dreamsorcerer, I have made all the suggested changes. |
There are a fair number of tests which create a ClientSession directly, but this should cover most tests. We just want a test now to validate the behaviour in tests. |
I'll probably take a look at it over the weekend, but if you'd like to give it a try, then I think we want a test that uses the aiohttp_client fixture with an app that has an endpoint which closes the connection (probably |
Ok, I will try to make a test like that. Can you point me to parts where I can take a look for inspiration while writing tests..? |
Probably any test that uses aiohttp_client currently. The test should be added to test_test_utils.py |
What do these changes do?
It disables retry logic by default in tests.
Are there changes in behavior for the user?
No
Is it a substantial burden for the maintainers to support this?
No
Related issue number
#9141
Checklist
CHANGES/
folderCONTRIBUTORS.txt