From dd16e6e5c1c2aa02433c64a1becbd7574afe18f7 Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Wed, 25 Sep 2024 15:47:42 +0800 Subject: [PATCH] log: Fix test (#79) * log: Fix test * log: Skip TestLogger on windows --- log/logger_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/log/logger_test.go b/log/logger_test.go index 183cae1..3422de9 100644 --- a/log/logger_test.go +++ b/log/logger_test.go @@ -5,10 +5,14 @@ import ( "log" "log/slog" "os" + "runtime" "testing" ) func TestLogger(t *testing.T) { + if runtime.GOOS == "windows" { + return + } logger := New("test1", "", 0) defer os.Remove("test1") if file := logger.File(); file != "test1" {