compute agent dispatch affinity from target load (#4442)

* compute agent dispatch affinity from target load

* fix test config
This commit is contained in:
Paul Wells
2026-04-09 13:49:43 -07:00
committed by GitHub
parent 8fe9937770
commit 88c77dc666
4 changed files with 19 additions and 4 deletions
+6 -1
View File
@@ -40,7 +40,12 @@ type TestServer struct {
func NewTestServer(bus psrpc.MessageBus) *TestServer {
localNode, _ := routing.NewLocalNode(nil)
return NewTestServerWithService(must.Get(service.NewAgentService(
&config.Config{Region: "test"},
&config.Config{
Region: "test",
Agents: agent.Config{
TargetLoad: agent.DefaultTargetLoad,
},
},
localNode,
bus,
auth.NewSimpleKeyProvider("test", "verysecretsecret"),