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

node-red / node-red-web-nodes / 427 / 3
71%
master: 71%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2017 09:14PM UTC
Files 22
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

06 Nov 2017 09:08PM UTC coverage: 71.737% (-3.7%) from 75.478%
CXX="g++-4.8"

push

travis-ci

dceejay
Feature/handle network failure in google node (#199)

* Update npm dependencies

Installed packages:
 - backoff

Updated packages:
 - sinon
 - should
 - nock
 - mocha

* Handle network errors during token refresh

Currently there is a bug when a network error occurs during obtaining access token. The error is not reported to the caller via the callback function, so the caller waits forever for the response.

Secondly this commit adds network error tolerance by retrying the failed HTTP request 4 times (resulting a total of 5 HTTP request). Furthermore it waits between retries using exponential backoff strategy according to this formula:

  delay = 100 * 9^n
  where
   - delay is the time passes between HTTP calls in milliseconds
   - n is the retry counter (starting from 0)

* Fix failing tests after npm package upgrade

* Handle network errors during Google API requests

Current code only handles token refresh error, but the main HTTP request
could fail also and should be retried as well.
This commit adds a handler which retries failed HTTP request 4 times
(resulting a total of 5 HTTP requests).

1273 of 2031 branches covered (62.68%)

2523 of 3517 relevant lines covered (71.74%)

3.68 hits per line

Source Files on job 427.3 (CXX="g++-4.8")
  • Tree
  • List 0
  • Changed 8
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 427
  • Travis Job 427.3
  • 3c470fdb on github
  • Prev Job for on master (#332.1)
  • Next Job for CXX="g++-4.8" on master (#428.3)
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