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

fix: cache http wait request body #339

Merged
merged 3 commits into from Aug 17, 2021
Merged

Conversation

ajcasagrande
Copy link
Contributor

@ajcasagrande ajcasagrande commented Aug 4, 2021

I also updated the test code to check for this specific issue. If you run the updated tests against the current master it will fail due to the bug that this addresses.

Closes #338
Closes #341

See testcontainers#338
Closes testcontainers#338

Signed-off-by: Anthony Casagrande <anthony.j.casagrande@intel.com>
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

@ajcasagrande thanks for taking your time to fix this, and the explanation on how to reproduce it.

I added a comment about the usage of a method that is failing in the test execution for Go 1.14.

Other than that, LGTM!

wait/http.go Outdated Show resolved Hide resolved
Signed-off-by: Anthony Casagrande <anthony.j.casagrande@intel.com>
Signed-off-by: Anthony Casagrande <anthony.j.casagrande@intel.com>
@ajcasagrande
Copy link
Contributor Author

Unit tests are failing due to #341. For now I have pinned the version of rabbitmq to 3.8.19 to band-aid the issue, since the latest 3.9.x causes problems.

@codecov
Copy link

codecov bot commented Aug 5, 2021

Codecov Report

Merging #339 (2af1d3a) into master (dfc50d7) will increase coverage by 0.50%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #339      +/-   ##
==========================================
+ Coverage   60.91%   61.41%   +0.50%     
==========================================
  Files          15       15              
  Lines         985      990       +5     
==========================================
+ Hits          600      608       +8     
+ Misses        293      290       -3     
  Partials       92       92              
Impacted Files Coverage Δ
wait/http.go 59.37% <66.66%> (+3.33%) ⬆️
docker.go 63.99% <0.00%> (+0.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5bf62f...2af1d3a. Read the comment docs.

@gianarb gianarb merged commit 94e1ef9 into testcontainers:master Aug 17, 2021
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.

FAIL: Test_MultipleContainersInTheNewNetwork HTTP Wait Strategy: POST body missing on subsequent calls
3 participants