|
@@ -87,6 +87,7 @@ function prepare_web_container {
|
|
|
local -r options="$@"
|
|
|
|
|
|
local expose_option=""
|
|
|
+ IFS=$' \t\n' # See https://github.com/sstephenson/bats/issues/89
|
|
|
for port in $ports; do
|
|
|
expose_option="${expose_option}--expose=$port "
|
|
|
done
|
|
@@ -121,6 +122,7 @@ function prepare_web_container {
|
|
|
assert_success
|
|
|
|
|
|
# THEN querying directly port works
|
|
|
+ IFS=$' \t\n' # See https://github.com/sstephenson/bats/issues/89
|
|
|
for port in $ports; do
|
|
|
run retry 5 1s docker run --rm appropriate/curl --silent --fail http://$(docker_ip $container_name):$port/data
|
|
|
assert_output "answer from port $port"
|