Skip to content

fix(kafka): Use wait strategy instead of deprecated wait_for_logs#903

Merged
alexanderankin merged 3 commits intotestcontainers:mainfrom
Hugo-C:redpanda-wait-strategy
Apr 1, 2026
Merged

fix(kafka): Use wait strategy instead of deprecated wait_for_logs#903
alexanderankin merged 3 commits intotestcontainers:mainfrom
Hugo-C:redpanda-wait-strategy

Conversation

@Hugo-C
Copy link
Copy Markdown
Contributor

@Hugo-C Hugo-C commented Oct 14, 2025

Related to #874.

Since those containers first need to be started to know their exposed ports, we cannot use DockerContainer._wait_strategy. We have to keep checking logs manually in their own start methods.

Let me know if there is anything to change.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.24%. Comparing base (460b0d8) to head (2093bb5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #903   +/-   ##
=======================================
  Coverage   79.24%   79.24%           
=======================================
  Files          15       15           
  Lines        1277     1277           
  Branches      154      154           
=======================================
  Hits         1012     1012           
  Misses        219      219           
  Partials       46       46           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hugo-C Hugo-C changed the title Fix Kafka/Redpanda DeprecationWarning on wait_for_logs fix(kafka): Use wait strategy instead of deprecated wait_for_logs Oct 15, 2025
@Hugo-C Hugo-C force-pushed the redpanda-wait-strategy branch from c410486 to 3a67042 Compare February 3, 2026 21:53
@Hugo-C Hugo-C force-pushed the redpanda-wait-strategy branch from 3a67042 to ae1cb02 Compare February 3, 2026 22:14
@Hugo-C
Copy link
Copy Markdown
Contributor Author

Hugo-C commented Feb 3, 2026

#945 Fixed Kafka but not Redpanda, so I adapted the changes accordingly.

@Hugo-C
Copy link
Copy Markdown
Contributor Author

Hugo-C commented Feb 3, 2026

@alexanderankin if you can take a look as you merged the similar PR.

@alexanderankin alexanderankin merged commit 87332c1 into testcontainers:main Apr 1, 2026
9 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