Skip to content

Adding parseInt to config.timeout#3781

Merged
jasonsaayman merged 2 commits intoaxios:masterfrom
piiih:master
May 6, 2021
Merged

Adding parseInt to config.timeout#3781
jasonsaayman merged 2 commits intoaxios:masterfrom
piiih:master

Conversation

@piiih
Copy link
Copy Markdown
Contributor

@piiih piiih commented May 4, 2021

Issue: #3778

Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman left a comment

Choose a reason for hiding this comment

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

Please check issues

Comment thread lib/adapters/http.js
Comment thread test/unit/adapters/http.js Outdated
}
});

it('should NOT parse the timeout property', function (done) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this test rather be something like should throw an error if the timeout property is not parsable as a number

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.

Done! :)

Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman left a comment

Choose a reason for hiding this comment

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

👍

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.

Passing timeout as a string is throwing an error in the latest version of axios due to upgrade of follow-redirects

2 participants