From 3162fa5b9a64f342c95aa11f39da477d345eed94 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 10 Nov 2025 18:02:46 -0500 Subject: [PATCH] debug: run sleep for longer and check the inspect output of the cron container --- tests/unit/cron.bats | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unit/cron.bats b/tests/unit/cron.bats index 6da29182d..8b37cac2c 100644 --- a/tests/unit/cron.bats +++ b/tests/unit/cron.bats @@ -253,6 +253,12 @@ teardown() { echo "status: $status" assert_success + run /bin/bash -c "docker ps --filter "label=com.dokku.cron-id=$cron_id" -q | xargs docker inspect" + echo "output: $output" + echo "status: $status" + assert_success + assert_output_exists + run /bin/bash -c "dokku cron:run $TEST_APP $cron_id" echo "output: $output" echo "status: $status" @@ -461,7 +467,7 @@ template_cron_file_concurrency_forbid() { { "cron": [ { - "command": "sleep 5", + "command": "sleep 30", "schedule": "0 0 * * *", "concurrency_policy": "forbid" }