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

share / sharedb / 873
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Ran 30 Aug 2018 09:13AM UTC
Jobs 3
Files 23
Run time 48s
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
873

Pull #245

travis-ci

web-flow
Improve test coverage for `SnapshotRequest.onConnectionStateChanged`

This change improves `SnapshotRequest` test coverage to 100%.

Our current test for checking that a dropped connection works didn't
actually fail properly when removing `this.sent = false` from
`SnapshotRequest._onConnectionStateChanged`, so an improved test has
been written that use middleware to wait until the request has
definitely been sent, before dropping the connection and reconnecting.

It also adds a previously uncovered test case for checking that the
connection cannot send the same request multiple times, by using a
similar setup to the rewritten dropped connection case.

This change also adds some documentation recording why we might want to
reset `this.sent = false`, because just looking at the code it's
unclear why we would ever want to do that.
Pull Request #245: Improve test coverage for `SnapshotRequest.onConnectionStateChanged`

1077 of 1295 branches covered (83.17%)

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

2275 of 2382 relevant lines covered (95.51%)

403.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 873.1 30 Aug 2018 09:13AM UTC 0
95.51
Travis Job 873.1
2 873.2 30 Aug 2018 09:13AM UTC 0
95.51
Travis Job 873.2
3 873.3 30 Aug 2018 09:14AM UTC 0
95.51
Travis Job 873.3
Source Files on build 873
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #873
  • Pull Request #245
  • PR Base - master (#850)
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