• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HyperionGray / trio-websocket / 75 / 2
93%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/pygments-2.7.4
DEFAULT BRANCH: master
Ran 07 Nov 2018 09:48PM UTC
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Nov 2018 09:47PM UTC coverage: 91.957% (+0.6%) from 91.375%
75.2

Pull #79

travis-ci

web-flow
Delay connection closed (#69)

As described in the issue, get_message() was raising connection closed
even if there were pending messages. Per Nathaniel's suggestion, the
proper behavior is this:

1. If the remote endpoint closed the connection, then the local endpoint
   may continue reading all messages sent prior to closing.
2. If the local endpoint closed the connection, then the local endpoint
   may not read any more messages.

I added tests for these two conditions and implemented the behavior by
closing the ReceiveChannel inside the connection's `aclose()`. This
requires a bit of additional exception handling inside `get_message()`
and inside the reader task.

One slight surprise is that the test can't be written due to the bug
in #74! The client would hang because the reader task is blocked by
the unconsumed messages. So I changed the channel size to 32, which
allows this test to work, and I will replace this hard-coded value
when I fix #74.
Pull Request #79: Delay connection closed (#69)

343 of 373 relevant lines covered (91.96%)

0.92 hits per line

Source Files on job 75.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 61
  • Travis Job 75.2
  • da608303 on github
  • Prev Job for on delay_connection_closed (#71.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc