]> git.giacomolli.uk - onechat/blobdiff - daemon_start_helper_test.go
Log each schedule run by its ID
[onechat] / daemon_start_helper_test.go
index 6e4e32860ee944d3454cfa2408656537068f6d88..0c25acc01dff4b8fa93cddd9c43f7d799d3a4a6e 100644 (file)
@@ -2,6 +2,8 @@ package main
 
 import (
        "context"
+       "io"
+       "log"
        "path/filepath"
        "testing"
        "time"
@@ -52,7 +54,7 @@ func daemonStartTestWithSchedules(t *testing.T, server *ModelFake, bot *Telegram
        done := make(chan error)
        go func() {
                done <- daemonServe(ctx, listener, bot, whatsapp, schedules, func(notify func(Event)) (*TurnLoop, error) {
-                       return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, schedules, client, clock, notify)
+                       return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, schedules, client, clock, log.New(io.Discard, "", 0), notify)
                })
        }()