From 9e20a5d7bbb24bd5366516824855635e9f858eba Mon Sep 17 00:00:00 2001 From: v Date: Mon, 30 Dec 2024 21:40:37 +0100 Subject: [PATCH] print ascend_output if healthcheck timeout test fails --- tests/healtchecks.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/healtchecks.lua b/tests/healtchecks.lua index 5a278e6..074df9d 100644 --- a/tests/healtchecks.lua +++ b/tests/healtchecks.lua @@ -127,12 +127,15 @@ test["health checks - timeout"] = function() return false, "Healthcheck setting is not updated correctly" end + local ascend_output = "" while true do local line = ascendOutput:read("l", 1) + ascend_output = ascend_output .. line .. "\n" if line and line:match("healthcheck for date:default timed out") then break end if os.time() > startTime + 20 then + print(ascend_output) return false, "Service did not timeout in time: " .. tostring(os.time() - startTime) .. "s" end end