testcontainers-java
testcontainers-java copied to clipboard
test: verify both wait strategies in WaitAllStrategyTest
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
shouldNotMessWithIndividualTimeoutsto verify thatstrategy2does not receive an individual startup timeout. - Update
shouldOverwriteIndividualTimeoutsto verify thatstrategy2receives 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