test: drain dead-containers before scale-up assertion

The intermediate container count check raced with the existing
zero-downtime retire of the previous container, so docker ps still
saw the renamed-but-pending container until wait-to-retire elapsed.
This commit is contained in:
Jose Diaz-Gonzalez
2026-04-27 03:29:06 -04:00
parent 4927ca092d
commit bc603d7b9c

View File

@@ -197,6 +197,13 @@ teardown() {
echo "status: $status"
assert_success
sleep 2
run /bin/bash -c "dokku ps:retire"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "docker ps --filter label=com.dokku.app-name=$TEST_APP --filter label=com.dokku.process-type=web --format '{{.Names}}' | wc -l"
echo "output: $output"
echo "status: $status"