From a18fa7afbe64b3ecc5b57df2d36a979767858233 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Fri, 24 Apr 2015 11:30:20 -0700 Subject: [PATCH] we only need the first container here --- tests/unit/core_ports.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/core_ports.bats b/tests/unit/core_ports.bats index 0f4de64a3..b69943942 100644 --- a/tests/unit/core_ports.bats +++ b/tests/unit/core_ports.bats @@ -37,7 +37,7 @@ teardown() { @test "(core) port exposure (with NO_VHOST set)" { deploy_app dokku config:set $TEST_APP NO_VHOST=1 - CONTAINER_ID=$(docker ps --no-trunc| grep dokku/$TEST_APP | grep "start web" | awk '{ print $1 }') + 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