refactor: simplify ports-configure codebase

This makes it slightly easier to reason about, at the cost of being slower.

Also ignore failure to remove image as this was flaky.
This commit is contained in:
Jose Diaz-Gonzalez
2023-07-09 18:31:18 -04:00
parent 48d5820b8c
commit 977b4567f8
3 changed files with 133 additions and 101 deletions

View File

@@ -127,8 +127,5 @@ teardown() {
assert_success
assert_output_contains "Overriding default nginx.conf with detected nginx.conf.sigil" 2
run /bin/bash -c "docker image rm dokku-test/$TEST_APP:latest dokku-test/$TEST_APP:v2"
echo "output: $output"
echo "status: $status"
assert_success
docker image rm dokku-test/$TEST_APP:latest dokku-test/$TEST_APP:v2 || true
}