refactor: drop the last argument from procfile-get-command

No external plugin should need to know the internals of where processes are.
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-01 17:30:24 -05:00
parent e8cfbfad36
commit ab1d15216c
5 changed files with 7 additions and 9 deletions

View File

@@ -44,12 +44,12 @@ teardown() {
web: node web.js --port \$PORT
worker: node worker.js
EOF
run get_cmd_from_procfile "$TEST_APP" web 5001
run plugn trigger procfile-get-command "$TEST_APP" web 5001
echo "output: $output"
echo "status: $status"
assert_output "node web.js --port 5001"
run get_cmd_from_procfile "$TEST_APP" worker
run plugn trigger procfile-get-command "$TEST_APP" worker
echo "output: $output"
echo "status: $status"
assert_output "node worker.js"