Skip to content

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Sep 17, 2024

Description

We do not want to modify http.DefaultClient because it can cause undesired effects in other places. It is not an issue right now since we only use the default client in one place, but can become an issue if we introduce usage in another piece of code: there is a chance (depending on the ordering) that some other test will be using Transport from another test. It is best to create a new instance of a client so we do not re-use the state.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

We do not want to modify `http.DefaultClient` because
it can cause undesired effects in other places.

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola requested a review from a team as a code owner September 17, 2024 09:12
Copy link

netlify bot commented Sep 17, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 4a5e663
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66e947f8d1ce3c0008ebb9d4
😎 Deploy Preview https://deploy-preview-1278--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.47%. Comparing base (b1f5cef) to head (4a5e663).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1278      +/-   ##
==========================================
- Coverage   76.51%   76.47%   -0.05%     
==========================================
  Files          40       40              
  Lines        2363     2363              
==========================================
- Hits         1808     1807       -1     
- Misses        389      390       +1     
  Partials      166      166              
Flag Coverage Δ
e2e 57.85% <ø> (ø)
unit 52.89% <ø> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bentito
Copy link
Contributor

bentito commented Sep 17, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2024
@joelanford joelanford added this pull request to the merge queue Sep 17, 2024
Merged via the queue into operator-framework:main with commit 06424ef Sep 17, 2024
17 of 18 checks passed
@m1kola m1kola deleted the fix_http_DefaultClient branch September 18, 2024 08:27
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants