X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/38a9b0502a1ccefc6ccb3472c4a21805b222caa6..3f61d7080bc1cb14988a65ac433cbc5959857c16:/subagent_run_test.go?ds=inline diff --git a/subagent_run_test.go b/subagent_run_test.go index 9b8b8c5..02ad961 100644 --- a/subagent_run_test.go +++ b/subagent_run_test.go @@ -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())