debug(handlers): add timing to integration tests to pinpoint hang location

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · core-be 2026-05-12 13:58:05 +00:00
parent 5bd8858c6f
commit 6545461a59

View File

@ -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)