Skip to content

Commit

Permalink
test: allow additional parameters to test_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Mar 19, 2019
1 parent 50fbac5 commit dd963c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ set -ex
function test_app() {
local name=$1
local port="8080"
local extra_args=${2:-""}

local container_id=$(docker run --name ${name}-test -d -p ${port} ${name})
local container_id=$(docker run --name ${name}-test -d -p ${port} ${extra_args} ${name})

# sleep is required because after docker run returns, the container is up but our server may not quite be yet
sleep 5
Expand Down

0 comments on commit dd963c5

Please sign in to comment.