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

share / sharedb / 869
96%
master: 97%

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

push

travis-ci

Alec Gibson
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.

1089 of 1309 branches covered (83.19%)

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

2293 of 2400 relevant lines covered (95.54%)

401.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 869.1 30 Aug 2018 09:06AM UTC 0
95.54
Travis Job 869.1
2 869.2 30 Aug 2018 09:06AM UTC 0
95.54
Travis Job 869.2
3 869.3 30 Aug 2018 09:06AM UTC 0
95.54
Travis Job 869.3
Source Files on build 869
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #869
  • 3b457bbd on github
  • Prev Build on null-milestone-db (#867)
  • Next Build on null-milestone-db (#872)
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