X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/e737005f89c7c663e1636830001730ad79396bdc..150d707b16a5495272dfb02d690d99bfae50c14e:/schedule_helper_test.go diff --git a/schedule_helper_test.go b/schedule_helper_test.go index fbaebe4..ea02ed6 100644 --- a/schedule_helper_test.go +++ b/schedule_helper_test.go @@ -1,6 +1,8 @@ package main import ( + "io" + "log" "path/filepath" "testing" "time" @@ -12,7 +14,7 @@ import ( func newTestSchedules(t *testing.T, clock func() time.Time) *Schedules { t.Helper() - schedules, err := openSchedules(filepath.Join(t.TempDir(), scheduleFileName), clock) + schedules, err := openSchedules(filepath.Join(t.TempDir(), scheduleFileName), clock, log.New(io.Discard, "", 0)) require.NoError(t, err) return schedules