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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/pygments-2.7.4
DEFAULT BRANCH: master
Ran 07 Nov 2018 09:48PM UTC
Jobs 2
Files 3
Run time 39s
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

pending completion
75

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)

7 of 7 new or added lines in 1 file covered. (100.0%)

343 of 373 relevant lines covered (91.96%)

1.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 75.1 07 Nov 2018 09:49PM UTC 0
91.15
Travis Job 75.1
2 75.2 07 Nov 2018 09:48PM UTC 0
91.96
Travis Job 75.2
Source Files on build 75
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #75
  • Pull Request #79
  • PR Base - master (#71)
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