]> git.giacomolli.uk - onechat/blobdiff - daemon_start_helper_test.go
Give the root agent the schedule tools
[onechat] / daemon_start_helper_test.go
index baa527b9d7637851d0db2e0ebc67698a678bd6d1..e7dea6c410dbf7d24de29f7a26053fad249a37a1 100644 (file)
@@ -42,7 +42,7 @@ func daemonStartTestWithWhatsApp(t *testing.T, server *ModelFake, bot *TelegramB
        done := make(chan error)
        go func() {
                done <- daemonServe(ctx, listener, bot, whatsapp, func(notify func(Event)) (*TurnLoop, error) {
-                       return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, client, clock.Now, notify)
+                       return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, newTestSchedules(t, clock.Now), client, clock.Now, notify)
                })
        }()