From ce275837ac16b7dceb79db6e8010806262961dc9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 17 Feb 2020 04:39:52 -0500 Subject: [PATCH] fix: properly check for app domains --- tests/unit/test_helper.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index 0967564c8..c7d08244d 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -206,7 +206,8 @@ assert_nonssl_domain() { assert_app_domain() { local domain=$1 - run /bin/bash -c "dokku domains:report $TEST_APP --domains-app-vhosts | grep -xF ${domain}" + run /bin/bash -c "dokku domains:report $TEST_APP --domains-app-vhosts | tr \" \" \"\n\" | grep -xF ${domain}" + echo "app domains: $(dokku domains:report $TEST_APP --domains-app-vhosts | tr \" \" \"\n\" )" echo "output: $output" echo "status: $status" assert_output "${domain}"