From 56566d1c056c250399285a0c03cdcdb73ccb8626 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 20 Nov 2025 00:42:49 -0500 Subject: [PATCH] chore: make the postdeploy task name more clear --- plugins/app-json/functions.go | 6 +----- tests/unit/app-json-4.bats | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/app-json/functions.go b/plugins/app-json/functions.go index b596044c7..45610ff25 100644 --- a/plugins/app-json/functions.go +++ b/plugins/app-json/functions.go @@ -133,11 +133,7 @@ func cleanupDeploymentContainer(containerID string, phase string) error { } func executeScript(appName string, image string, imageTag string, phase string) error { - phaseName := phase - if phase == "heroku.postdeploy" { - phaseName = "first deploy postdeploy" - } - common.LogInfo1(fmt.Sprintf("Checking for %s task", phaseName)) + common.LogInfo1(fmt.Sprintf("Checking for %s task", phase)) command := "" phaseSource := "" if phase == "release" { diff --git a/tests/unit/app-json-4.bats b/tests/unit/app-json-4.bats index 283d88034..315d1c777 100644 --- a/tests/unit/app-json-4.bats +++ b/tests/unit/app-json-4.bats @@ -50,7 +50,7 @@ teardown() { run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_failing_postdeploy echo "output: $output" echo "status: $status" - assert_output_contains "Execution of first deploy postdeploy task failed" + assert_output_contains "Execution of heroku.postdeploy task failed" assert_failure }