fix test issue
This commit is contained in:
parent
084112e8e1
commit
0decb2241f
1 changed files with 4 additions and 7 deletions
|
|
@ -796,11 +796,7 @@ func TestProcessDirectWithChannel_TriggersMCPInitialization(t *testing.T) {
|
||||||
ToolConfig: config.ToolConfig{
|
ToolConfig: config.ToolConfig{
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
},
|
},
|
||||||
Servers: map[string]config.MCPServerConfig{
|
// No servers configured - manager should not be initialized
|
||||||
"test-server": {
|
|
||||||
Enabled: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -825,8 +821,9 @@ func TestProcessDirectWithChannel_TriggersMCPInitialization(t *testing.T) {
|
||||||
t.Fatalf("ProcessDirectWithChannel failed: %v", err)
|
t.Fatalf("ProcessDirectWithChannel failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !al.mcp.hasManager() {
|
// Manager should not be initialized when no servers are configured
|
||||||
t.Fatal("expected MCP manager to be initialized in direct agent mode")
|
if al.mcp.hasManager() {
|
||||||
|
t.Fatal("expected MCP manager to be nil when no servers are configured")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue