Skip to content

upgrade requestretry - #52

Merged
emilymcafee merged 4 commits into
masterfrom
upgrade
Jul 16, 2017
Merged

upgrade requestretry#52
emilymcafee merged 4 commits into
masterfrom
upgrade

Conversation

@emilymcafee

@emilymcafee emilymcafee commented Jul 11, 2017

Copy link
Copy Markdown
Contributor

Updated tests to reflect changes that came along with this upgrade. Will definitely need another set of 👀, this doesn't seem like expected behavior to me.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 89.881% when pulling 4093654 on upgrade into f781281 on master.

Comment thread test/tilejson.test.js Outdated
tilejson.getTile(2, 2, 2, function(err, data, headers) {
assert.equal(err.code, 'ECONNRESET');
assert.equal(connectionCount, 2);
assert.equal(connectionCount, 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll want to leave the 2 here and change the maxAttempts here https://github.com/mapbox/node-tilejson/blob/master/lib/tilejson.js#L219 to 2, since it looks like maxAttempts setting was a lie until this change in requestretry: FGRibreau/node-request-retry@a130355.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks for digging!

Comment thread test/tilejson.test.js
tilejson.getTile(1, 0, 0, function(err, data, headers) {
assert.ok(err);
assert.equal(err.message, 'ETIMEDOUT');
assert.equal(err.message, 'ESOCKETTIMEDOUT');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change in error code is fine - it still timed out either way, which is what we want to see.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 89.881% when pulling aa63d58 on upgrade into f781281 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 89.881% when pulling 492f10f on upgrade into f781281 on master.

@emilymcafee
emilymcafee merged commit 2394550 into master Jul 16, 2017
@emilymcafee
emilymcafee deleted the upgrade branch July 16, 2017 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants