testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

test: verify both wait strategies in WaitAllStrategyTest

Open codingkiddo opened this issue 5 months ago • 0 comments

Summary

Fix a copy-paste issue in WaitAllStrategyTest.

Two tests were verifying strategy1 twice and never verifying strategy2. As a result, the tests did not fully assert behavior for both configured wait strategies.

Changes

  • Update shouldNotMessWithIndividualTimeouts to verify that strategy2 does not receive an individual startup timeout.
  • Update shouldOverwriteIndividualTimeouts to verify that strategy2 receives the configured startup timeout.
  • No production code changes.

Testing

Ran the focused test:

./gradlew :testcontainers:test --tests org.testcontainers.containers.wait.strategy.WaitAllStrategyTest

Also ran formatting/check commands as requested:

./gradlew checkstyleMain checkstyleTest spotlessApply

codingkiddo avatar Jun 04 '26 14:06 codingkiddo