X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/37d5f21b23da5fbd6b44fed41f653927669571ed..1e2df788bbb17653a6df44acd41da2edb109d403:/subagent_run_test.go diff --git a/subagent_run_test.go b/subagent_run_test.go index 647b7ad..02ad961 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, newTestSchedules(t, clock.Now), client, clock.Now, events.Add) require.NoError(t, err) ctx, cancel := context.WithCancel(t.Context())