Skip to content

Commit

Permalink
log: Fix test (#79)
Browse files Browse the repository at this point in the history
* log: Fix test

* log: Skip TestLogger on windows
  • Loading branch information
sunshineplan authored Sep 25, 2024
1 parent 360bbe2 commit dd16e6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit dd16e6e

Please sign in to comment.