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

HyperionGray / trio-websocket / 74 / 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:40PM UTC coverage: 91.957%. First build
74.2

push

travis-ci

mehaase
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.

343 of 373 relevant lines covered (91.96%)

0.92 hits per line

Source Files on job 74.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 60
  • Travis Job 74.2
  • aa47e2bb on github
  • Next Job for on delay_connection_closed (#78.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