Skip to content
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

[PR #9071/a33270bc backport][3.10] Add tests for websocket close #9075

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Sep 9, 2024

This is a backport of PR #9071 as merged into master (a33270b).

This is a followup to add more coverage for #5180

It took me a while but I realized that this is behaving as expected because the client is sending a string await ws.send_str('some data') which is never received by the server (no receive), and the connection is closed while the message is still on the wire.

Everything is working as expected, and the test was wrong.

closes #5180

@patchback patchback bot requested a review from asvetlov as a code owner September 9, 2024 00:46
@bdraco bdraco enabled auto-merge (squash) September 9, 2024 00:47
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (d36317b) to head (32406bd).
Report is 2 commits behind head on 3.10.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.10    #9075   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files         108      108           
  Lines       34440    34455   +15     
  Branches     4093     4092    -1     
=======================================
+ Hits        33670    33685   +15     
  Misses        575      575           
  Partials      195      195           
Flag Coverage Δ
CI-GHA 97.66% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.34% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.90% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.02% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.11% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 97.05% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.28% <100.00%> (+<0.01%) ⬆️
Py-3.12.5 97.38% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 94.52% <100.00%> (+<0.01%) ⬆️
Py-3.8.18 96.84% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.02% <100.00%> (+<0.01%) ⬆️
Py-3.9.19 96.95% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 96.55% <100.00%> (+<0.01%) ⬆️
VM-macos 97.02% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.34% <100.00%> (+<0.01%) ⬆️
VM-windows 94.90% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@bdraco bdraco merged commit 5b2b77d into 3.10 Sep 9, 2024
31 of 32 checks passed
@bdraco bdraco deleted the patchback/backports/3.10/a33270bc7c36a989acafed72ce9a2a6ab2c1bc2e/pr-9071 branch September 9, 2024 01:18
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.

1 participant