]> git.giacomolli.uk - onechat/blobdiff - subagent_run_test.go
Give the root agent the schedule tools
[onechat] / subagent_run_test.go
index 9b8b8c5b8279b43c8369a1b26d2856c45e9e7ffa..02ad961f6b879142bbca77d38c865006f49ca368 100644 (file)
@@ -517,7 +517,7 @@ 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"))
        whatsapp, _, _ := whatsappStartTest(t, t.TempDir(), clock)
-       loop, err := newTurnLoop(agent, memory, subagents, whatsapp, client, clock.Now, events.Add)
+       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())