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

lukechilds / cacheable-request / 416 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v7.0.2
DEFAULT BRANCH: master
Ran 14 Jan 2019 06:45AM UTC
Files 1
Run time 1s
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

14 Jan 2019 06:33AM UTC coverage: 100.0%. First build
416.1

push

travis-ci

lukechilds
Ensure request error callback runs only once (#66)

The `requestErrorCallback` can be called twice in case the request is aborted before receiving the first byte of the response, as it will emit both `abort` and `error` events. This PR ensures the logic inside `requestErrorCallback` runs only once.

There's no behavior change as calling `resolve()` after the promise is already resolved is a no-op.

This is just a sanity check to futureproof the code in case more logic is added to `requestErrorCallback` later on.

69 of 69 branches covered (100.0%)

Branch coverage included in aggregate %.

120 of 120 relevant lines covered (100.0%)

32.03 hits per line

Source Files on job 416.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 329
  • Travis Job 416.1
  • 358c3db0 on github
  • Next Job for on clean-master (#418.2)
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