X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/37d5f21b23da5fbd6b44fed41f653927669571ed..b1095a9efc2d57d0c13a043f3feaddbdec789512:/subagent_run_test.go?ds=inline diff --git a/subagent_run_test.go b/subagent_run_test.go index 647b7ad..9b8b8c5 100644 --- a/subagent_run_test.go +++ b/subagent_run_test.go @@ -516,7 +516,8 @@ func subagentTestStart(t *testing.T, agent *Agent, server *ModelFake, events *Tu subagents := newSubagents(filepath.Join(agent.dir, subagentDirName), clock.Now, subagentNameRandom) client := newModelClient(server.URL, ModelAPIKey(modelTestKey), agent.CacheKey(), filepath.Join(agent.dir, "usage.jsonl")) - loop, err := newTurnLoop(agent, memory, subagents, client, clock.Now, events.Add) + whatsapp, _, _ := whatsappStartTest(t, t.TempDir(), clock) + loop, err := newTurnLoop(agent, memory, subagents, whatsapp, client, clock.Now, events.Add) require.NoError(t, err) ctx, cancel := context.WithCancel(t.Context())