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

node-red / node-red-web-nodes / 427
71%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2017 09:13PM UTC
Jobs 4
Files 22
Run time 1min
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
427

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).

1274 of 2031 branches covered (62.73%)

112 of 112 new or added lines in 2 files covered. (100.0%)

2525 of 3517 relevant lines covered (71.79%)

14.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
google/google.js
17
100.0
openweathermap/weather.js

Uncovered Existing Lines

Lines Coverage ∆ File
31
100.0
aws/aws.js
35
100.0
openweathermap/weather.js
40
100.0
box/box.js
160
100.0
dropbox/dropbox.js
Jobs
ID Job ID Ran Files Coverage
1 427.1 (CXX="g++-4.8") 06 Nov 2017 09:13PM UTC 0
71.79
Travis Job 427.1
2 427.2 (CXX="g++-4.8") 06 Nov 2017 09:14PM UTC 0
71.79
Travis Job 427.2
3 427.3 (CXX="g++-4.8") 06 Nov 2017 09:14PM UTC 0
71.74
Travis Job 427.3
4 427.4 (CXX="g++-4.8") 06 Nov 2017 09:14PM UTC 0
71.79
Travis Job 427.4
Source Files on build 427
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #427
  • 3c470fdb on github
  • Prev Build on master (#332)
  • Next Build on master (#428)
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