X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/0da1ef837bbd190cc5787214187d1b29d62b9410..38a9b0502a1ccefc6ccb3472c4a21805b222caa6:/subagent_run_test.go 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())