Skip to content

Commit

Permalink
fix: unit tests error
Browse files Browse the repository at this point in the history
  • Loading branch information
shipengqi committed Sep 6, 2023
1 parent 16286b4 commit 686dd0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ func TestGlobalLogger(t *testing.T) {
L().Warnf("Hello, %s", name+"3")
L().Errorf("Hello, %s", name+"4")
expected := []string{
"debug log/log_test.go:138 Hello, world1",
"info log/log_test.go:139 Hello, world2",
"warn log/log_test.go:140 Hello, world3",
"error log/log_test.go:141 Hello, world4",
"debug log/log_test.go:1389Hello, world1",
"info log/log_test.go:140 Hello, world2",
"warn log/log_test.go:141 Hello, world3",
"error log/log_test.go:142 Hello, world4",
}
_ = w.Close()
stdout, _ := io.ReadAll(r)
Expand Down

0 comments on commit 686dd0f

Please sign in to comment.