X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/150d707b16a5495272dfb02d690d99bfae50c14e..871743f6ab20d68dcede1673a9764730fda38308:/schedule_helper_test.go?ds=sidebyside diff --git a/schedule_helper_test.go b/schedule_helper_test.go index ea02ed6..814056c 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), clock, discardLog()) require.NoError(t, err) return schedules