From f39de15d93f22a37e9c73e5e75a8e07288409082 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 27 Dec 2024 01:12:29 +0300 Subject: [PATCH] fixup Signed-off-by: Vasiliy Tolstov --- logger/slog/slog_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logger/slog/slog_test.go b/logger/slog/slog_test.go index d527110c..8f87b226 100644 --- a/logger/slog/slog_test.go +++ b/logger/slog/slog_test.go @@ -32,7 +32,8 @@ func TestTime(t *testing.T) { l.Error(ctx, "msg1", errors.New("err")) - if !bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T03:00:00.000000000+03:00`)) { + if !bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T03:00:00.000000000+03:00`)) && + !bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T00:00:00.000000000Z`)) { t.Fatalf("logger error not works, buf contains: %s", buf.Bytes()) } }