From 6548cc4477ad30215de62af3a30028dac982d58c Mon Sep 17 00:00:00 2001 From: Pascal Widdershoven Date: Thu, 24 Mar 2016 07:34:43 +0100 Subject: [PATCH] Update test to not depend on passing named arguments via Herokuish There may be a bug in Herokuish that messes up with quoted named arguments, see discussion in https://github.com/dokku/dokku/pull/2018 --- tests/apps/nodejs-express/Procfile | 2 +- tests/unit/30_core_1.bats | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/apps/nodejs-express/Procfile b/tests/apps/nodejs-express/Procfile index 2dfa137ec..6d278657f 100644 --- a/tests/apps/nodejs-express/Procfile +++ b/tests/apps/nodejs-express/Procfile @@ -6,7 +6,7 @@ cron: node worker.js web: node web.js worker: node worker.js -console: bash +custom: echo -n # Old version with separate processes (use this if you have issues with the threaded version) diff --git a/tests/unit/30_core_1.bats b/tests/unit/30_core_1.bats index 18bd52ef2..c6f2bb794 100644 --- a/tests/unit/30_core_1.bats +++ b/tests/unit/30_core_1.bats @@ -130,12 +130,12 @@ build_nginx_config() { @test "(core) run command from Procfile" { deploy_app - run /bin/bash -c "dokku run $TEST_APP console -c 'echo hi' | tail -n 1" + run /bin/bash -c "dokku run $TEST_APP custom 'hi dokku' | tail -n 1" echo "output: "$output echo "status: "$status assert_success - assert_output "hi" + assert_output 'hi dokku' } @test "(core) port exposure (dockerfile raw port)" {