Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout for tests #11

Merged
merged 3 commits into from
Oct 29, 2021
Merged

Add timeout for tests #11

merged 3 commits into from
Oct 29, 2021

Conversation

corys
Copy link
Contributor

@corys corys commented Oct 22, 2021

Each request has a timeout of 30000ms and 3 retries. So a test timeout of 100000 should prevent the test from timing out before the request is complete.

Also updated superagent to latest version to fix retry after a timeout.

Also added Accept: text/html header to FAA requests, which fixes most of the response issues with the FAA website.

corys added 3 commits October 22, 2021 15:32
Each request has a timeout of 30000ms and 3 retries.  So a test timeout of 100000 should prevent the test from timing out before the request is complete.
For some reason the server responds much faster with this request header
@corys corys merged commit 21dbd75 into master Oct 29, 2021
@corys corys deleted the fix-tests branch October 29, 2021 02:31
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.

Node retries not compatible with timeouts
2 participants