]> git.giacomolli.uk - onechat/blobdiff - schedule_helper_test.go
Keep each schedule with its owning agent
[onechat] / schedule_helper_test.go
index ea02ed6a0624f3fada5dc834c9462fc36ae937a5..d1e3d1f7a4c48a16f37cd41fdafd92ad183e252d 100644 (file)
@@ -1,8 +1,6 @@
 package main
 
 import (
-       "io"
-       "log"
        "path/filepath"
        "testing"
        "time"
@@ -14,7 +12,7 @@ import (
 func newTestSchedules(t *testing.T, clock func() time.Time) *Schedules {
        t.Helper()
 
-       schedules, err := openSchedules(filepath.Join(t.TempDir(), scheduleFileName), clock, log.New(io.Discard, "", 0))
+       schedules, err := openSchedules(filepath.Join(t.TempDir(), scheduleFileName), "OneChat", clock, discardLog())
        require.NoError(t, err)
 
        return schedules