X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/5b778ad04422dd456b7d673fb653f0353c47b0fe..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