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: update wait_for_logs to not throw on 'created', and an optimization #719

Merged

Conversation

mschmitzer
Copy link
Contributor

Attempt to fix another part of #715 , plus an optimization.

Based on #716 by @alexanderankin .

alexanderankin and others added 3 commits October 16, 2024 09:04
wait_for_logs has a mode for throwing on exit, it will now no longer treat "created" as an exit status
The status is cached on the Model instance. Without the reload, we
always see the first value that was loaded.
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@f7922d7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
core/testcontainers/core/waiting_utils.py 55.55% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #719   +/-   ##
=======================================
  Coverage        ?   80.88%           
=======================================
  Files           ?       12           
  Lines           ?      612           
  Branches        ?       91           
=======================================
  Hits            ?      495           
  Misses          ?       90           
  Partials        ?       27           

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

@alexanderankin alexanderankin changed the title Fix wait_for_logs raise_on_exit fix: update wait_for_logs to not throw on "created" (+optimization) Oct 24, 2024
@alexanderankin alexanderankin changed the title fix: update wait_for_logs to not throw on "created" (+optimization) fix: update wait_for_logs to not throw on "created" (&optimization) Oct 24, 2024
@alexanderankin alexanderankin changed the title fix: update wait_for_logs to not throw on "created" (&optimization) fix: update wait_for_logs to not throw on 'created', and an optimization Oct 24, 2024
@alexanderankin alexanderankin merged commit 271ca9a into testcontainers:main Oct 24, 2024
10 of 13 checks passed
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