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 container.State() function in tests #543

Merged
merged 2 commits into from Oct 6, 2022

Conversation

mdelapenya
Copy link
Collaborator

What does this PR do?

In tests, it uses container's State function instead of retrieving the state directly from the Docker client

Why is it important?

We noticed the exposed State func was not covered by tests

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner October 3, 2022 10:56
@mdelapenya mdelapenya self-assigned this Oct 3, 2022
@mdelapenya mdelapenya requested a review from a team October 3, 2022 10:56
@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Merging #543 (56cc31c) into main (38fbdc6) will increase coverage by 0.27%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #543      +/-   ##
==========================================
+ Coverage   68.83%   69.10%   +0.27%     
==========================================
  Files          22       22              
  Lines        2172     2172              
==========================================
+ Hits         1495     1501       +6     
+ Misses        537      533       -4     
+ Partials      140      138       -2     
Impacted Files Coverage Δ
docker.go 71.88% <0.00%> (+0.61%) ⬆️

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

@mdelapenya mdelapenya merged commit 91df4c4 into testcontainers:main Oct 6, 2022
@mdelapenya mdelapenya deleted the tests-consistency branch October 15, 2022 06:56
mdelapenya referenced this pull request in mdelapenya/testcontainers-go Dec 21, 2022
* main:
  Add system requirements parent docs page for podman and colima (#562)
  Support for cap-add/cap-drop (#555)
  fix container NetworkMode usage (#560)
  chore: use hashed versions of test-summary action (#556)
  chore: use container.State() function in tests (#543)
  Log docker server info (#548)
  docs: add docs regarding Colima usage (#547)
  chore: add emoji to breaking changes in release drafter (#542)
  chore: add CONTRIBUTING file (#539)
  issue #537 Rename the wait/multi.go file to wait/all.go (#541)
  docs: add a basic layout for wait strategies in docs (#536)
  docs: improve consistency and fix typos (#534)
  chore: do not skip test (#528)
  chore: include test flakiness in the release drafter (#535)
  chore: retire old versions of Go (#530)
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.

None yet

1 participant