From 6545461a59cec2139beb6772f6d909b49e0bc646 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-BE Date: Tue, 12 May 2026 13:58:05 +0000 Subject: [PATCH] debug(handlers): add timing to integration tests to pinpoint hang location Co-Authored-By: Claude Opus 4.7 --- .../internal/handlers/delegation_executor_integration_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workspace-server/internal/handlers/delegation_executor_integration_test.go b/workspace-server/internal/handlers/delegation_executor_integration_test.go index 176c16b3..038715b6 100644 --- a/workspace-server/internal/handlers/delegation_executor_integration_test.go +++ b/workspace-server/internal/handlers/delegation_executor_integration_test.go @@ -202,7 +202,9 @@ func TestIntegration_ExecuteDelegation_DeliveryConfirmedProxyError_TreatsAsSucce }, }, }) + start := time.Now() dh.executeDelegation(testSourceID, testTargetID, testDelegationID, a2aBody) + t.Logf("executeDelegation took %v", time.Since(start)) time.Sleep(500 * time.Millisecond) status, preview, errDet := readDelegationRow(t, conn) @@ -249,7 +251,9 @@ func TestIntegration_ExecuteDelegation_ProxyErrorNon2xx_RemainsFailed(t *testing }, }, }) + execStart := time.Now() dh.executeDelegation(testSourceID, testTargetID, testDelegationID, a2aBody) + t.Logf("executeDelegation took %v", time.Since(execStart)) time.Sleep(500 * time.Millisecond) status, _, errDet := readDelegationRow(t, conn)