Skip to content

fix: check if the container request is for the reaper#574

Merged
mdelapenya merged 1 commit intotestcontainers:mainfrom
mdelapenya:fix-reaper
Oct 21, 2022
Merged

fix: check if the container request is for the reaper#574
mdelapenya merged 1 commit intotestcontainers:mainfrom
mdelapenya:fix-reaper

Conversation

@mdelapenya
Copy link
Copy Markdown
Member

@mdelapenya mdelapenya commented Oct 21, 2022

What does this PR do?

It checks if the container request of the current container is for a reaper before creating a reaper for the container.

Therefore, the banner for the reaper must not be displayed.

Why is it important?

When a reaper is created, it always skips the reaper for itself, so we must check if the request is for a reaper, and this is achieved comparing the reaper image and the image of the request

Related issues

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 21, 2022

Codecov Report

Merging #574 (f77643f) into main (322aa4e) will decrease coverage by 17.43%.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##             main     #574       +/-   ##
===========================================
- Coverage   32.84%   15.40%   -17.44%     
===========================================
  Files          13       13               
  Lines        1757     1759        +2     
===========================================
- Hits          577      271      -306     
- Misses       1092     1442      +350     
+ Partials       88       46       -42     
Impacted Files Coverage Δ
docker.go 20.33% <75.00%> (-18.14%) ⬇️
reaper.go 3.50% <0.00%> (-74.57%) ⬇️
mounts.go 0.00% <0.00%> (-50.00%) ⬇️
logger.go 50.00% <0.00%> (-37.50%) ⬇️
docker_mounts.go 9.75% <0.00%> (-36.59%) ⬇️
container.go 40.96% <0.00%> (-6.03%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mdelapenya mdelapenya merged commit 786954c into testcontainers:main Oct 21, 2022
@mdelapenya mdelapenya deleted the fix-reaper branch October 21, 2022 21:57
@mdelapenya mdelapenya changed the title fix: check if the container request if for the reaper fix: check if the container request is for the reaper Oct 21, 2022
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.

2 participants