X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/150d707b16a5495272dfb02d690d99bfae50c14e..6915dbdfeb246551bf1132823d820beb321fd58c:/schedule_helper_test.go diff --git a/schedule_helper_test.go b/schedule_helper_test.go index ea02ed6..d1e3d1f 100644 --- a/schedule_helper_test.go +++ b/schedule_helper_test.go @@ -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