From c515b8f21e23b31cc3e72854928b73a1233775fd Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Wed, 11 Dec 2024 08:46:38 +0100 Subject: [PATCH] test: Add JSON logging handler to recur test --- sync/service/recur_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync/service/recur_test.go b/sync/service/recur_test.go index 2d7464e..98f4980 100644 --- a/sync/service/recur_test.go +++ b/sync/service/recur_test.go @@ -2,6 +2,7 @@ package main import ( "log/slog" + "os" "testing" "time" @@ -13,7 +14,7 @@ func TestRecur(t *testing.T) { now := time.Date(2024, 1, 1, 10, 0, 0, 0, time.UTC) mem := NewMemory() - rec := NewRecur(mem, mem, time.Second, slog.New()) + rec := NewRecur(mem, mem, time.Second, slog.New(slog.NewJSONHandler(os.Stdout, nil))) // Create a recurring item recur := &item.Recur{