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

chore: use local server for http integration tests #1808

Merged

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Jan 11, 2021

I believe the flakiness of the http test comes down to its dependence on making requests to google.fr. I have replaced this functionality in the tests with a local dev server. Making these requests locally means they are faster and more reliable.

@codecov
Copy link

codecov bot commented Jan 11, 2021

Codecov Report

Merging #1808 (2610f8f) into master (89664a7) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1808      +/-   ##
==========================================
+ Coverage   92.45%   92.49%   +0.03%     
==========================================
  Files         173      173              
  Lines        6019     6019              
  Branches     1287     1287              
==========================================
+ Hits         5565     5567       +2     
+ Misses        454      452       -2     
Impacted Files Coverage Δ
...es/opentelemetry-instrumentation-http/src/utils.ts 98.55% <0.00%> (+0.48%) ⬆️
packages/opentelemetry-plugin-http/src/utils.ts 98.54% <0.00%> (+0.48%) ⬆️

@dyladan
Copy link
Member Author

dyladan commented Jan 11, 2021

@vmarchaud I believe this will address the test flakiness but I would appreciate a look

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

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

lgtm

@vmarchaud
Copy link
Member

@dyladan Thanks for taking the time to do this

@dyladan dyladan merged commit f2dcec6 into open-telemetry:master Jan 11, 2021
@dyladan dyladan deleted the local-integration branch January 11, 2021 19:08
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.

4 participants