From b1a08843da6cf2983dec7cebb490aee2cf086273 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Sun, 11 Oct 2015 10:55:17 -0700 Subject: [PATCH] Avoid breakage from IFS being reset in "run" See https://github.com/sstephenson/bats/issues/89 --- test/test_helpers.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_helpers.bash b/test/test_helpers.bash index d4f0842..c4a2d1c 100644 --- a/test/test_helpers.bash +++ b/test/test_helpers.bash @@ -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"