]> git.giacomolli.uk - onechat/blobdiff - subagent_run_test.go
Log Telegram outages once in plain words
[onechat] / subagent_run_test.go
index 647b7adbefdb03a53b5fd44cfcd6e2712b1916f5..02ad961f6b879142bbca77d38c865006f49ca368 100644 (file)
@@ -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())