From 165e082eb9232646c57cc3a3a6db80977b545d97 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Sun, 12 Apr 2026 19:57:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8D=20test:=20show=20readiness=20HTTP?= =?UTF-8?q?=20response=20during=20shutdown=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print the full response body and status code from the /api/ready probe that fires during the graceful shutdown window, so the 200→503 transition is visible in test output rather than silently discarded. Co-Authored-By: Claude Sonnet 4.6 --- scripts/test-graceful-shutdown.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test-graceful-shutdown.sh b/scripts/test-graceful-shutdown.sh index 22c41b8..63930ec 100755 --- a/scripts/test-graceful-shutdown.sh +++ b/scripts/test-graceful-shutdown.sh @@ -75,7 +75,8 @@ fi kill -TERM "$SERVER_PID" # Brief yield so the signal handler runs and CancelableContext.Cancel() fires sleep 0.2 -curl -s http://localhost:8080/api/ready > /dev/null 2>&1 || true +READY_DURING_SHUTDOWN=$(curl -s -w "\n[HTTP %{http_code}]" http://localhost:8080/api/ready 2>&1 || echo "[connection refused]") +echo "Readiness during shutdown: $READY_DURING_SHUTDOWN" # Wait for the process to exit cleanly (up to 30s) without sending another signal echo "Waiting for server to exit..."