This commit is contained in:
lxowalle 2026-04-15 11:32:21 +08:00
parent 537cc35589
commit f0ac4d9b5c

View file

@ -1119,8 +1119,14 @@ func TestAgentLoop_Steering_BtwCommandBypassesQueuedTurn(t *testing.T) {
if outbound.SessionKey != expectedSessionKey {
t.Fatalf("expected /btw outbound session_key %q, got %q", expectedSessionKey, outbound.SessionKey)
}
if outbound.Scope == nil || outbound.Scope.AgentID != routing.DefaultAgentID || outbound.Scope.Channel != "test" {
t.Fatalf("expected /btw outbound scope for agent %q on test channel, got %+v", routing.DefaultAgentID, outbound.Scope)
if outbound.Scope == nil ||
outbound.Scope.AgentID != routing.DefaultAgentID ||
outbound.Scope.Channel != "test" {
t.Fatalf(
"expected /btw outbound scope for agent %q on test channel, got %+v",
routing.DefaultAgentID,
outbound.Scope,
)
}
case <-time.After(2 * time.Second):
t.Fatal("timeout waiting for /btw outbound response")