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

Changed httpbin endpoints to Postman Echo endpoints #96

Closed
wants to merge 4 commits into from

Conversation

TheOtherBrian1
Copy link
Contributor

What kind of change does this PR introduce?

Test code update.

What is the current behavior?

Tests' requests to httpbin timeout, which causes them to fail even if the code they are evaluating is fully functional.

What is the new behavior?

  • Tests now utilize the Postman Echo API, which is less likely to timeout, but functionally the same as httpbin.
  • The function test_http_post_no_content_type_coerce has been revised to no longer retrieve request data from rows in the http_request_queue table. These rows are typically deleted post-execution of a request, leading to an erroneous behavior in the test.

The previous endpoint used was https://httpbin.org. Unfortunately, it was too slow, which caused several timeout related errors. The endpoints were changed to use the Postman Echo API, which is much faster. This should mitigate the amount of timeout errors that occur during testing.
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.

1 participant