]> git.giacomolli.uk - onechat/blobdiff - turn_test.go
Package a systemd user service
[onechat] / turn_test.go
index 319dcf39fe2341b75dc2e7485fcba0be0e7a2907..1d958565550ba81be1fdfb4790460a3d7ac9d1ca 100644 (file)
@@ -392,7 +392,7 @@ func newTestTurnLoopWith(t *testing.T, server *ModelFake, summarizer Summarizer)
 
        client := newModelClient(server.URL, ModelAPIKey(modelTestKey), agent.CacheKey(), test.usagePath)
        whatsapp, _, _ := whatsappStartTest(t, t.TempDir(), clock)
-       test.loop, err = newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, client, clock.Now, test.events.Add)
+       test.loop, err = newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, newTestSchedules(t, clock.Now), client, clock.Now, test.events.Add)
        require.NoError(t, err)
        ctx, cancel := context.WithCancel(t.Context())
        done := make(chan error)