From 2f0f2889db4d72bde9b1c37d823fff78cc1d1e77 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Fri, 24 Apr 2015 13:09:30 -0700 Subject: [PATCH] need to restart now --- tests/unit/core_ports.bats | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/core_ports.bats b/tests/unit/core_ports.bats index f0076b381..0bee19df1 100644 --- a/tests/unit/core_ports.bats +++ b/tests/unit/core_ports.bats @@ -97,7 +97,12 @@ teardown() { echo "status: "$status assert_success - CONTAINER_ID=$(docker ps --no-trunc| grep dokku/$TEST_APP | grep "start web" | awk '{ print $1 }') + run dokku ps:restart $TEST_APP + echo "output: "$output + echo "status: "$status + assert_success + + CONTAINER_ID=$(docker ps --no-trunc| grep dokku/$TEST_APP | grep "start web" | awk '{ print $1 }' | head -1) run bash -c "docker port $CONTAINER_ID | sed 's/[0-9.]*://' | egrep '[0-9]*'" echo "output: "$output echo "status: "$status