Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
Avoid breakage from IFS being reset in "run"
Browse files Browse the repository at this point in the history
  • Loading branch information
md5 committed Oct 11, 2015
1 parent 0d2bc38 commit b1a0884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b1a0884

Please sign in to comment.