Skip to content

Commit

Permalink
fix: unit testing
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Dec 9, 2021
1 parent c8c88b6 commit fad64cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestGinzap(t *testing.T) {
t.Fatalf("logged path should be /test but %s", pathStr)
}

err := timestampLocationCheck(logLine.Context[6].String, time.UTC)
err := timestampLocationCheck(logLine.Context[7].String, time.UTC)
if err != nil {
t.Fatal(err)
}
Expand All @@ -77,7 +77,7 @@ func TestGinzap(t *testing.T) {
t.Fatalf("logged path should be /test but %s", pathStr)
}

err = timestampLocationCheck(logLine.Context[6].String, time.Local)
err = timestampLocationCheck(logLine.Context[7].String, time.Local)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -123,7 +123,7 @@ func TestGinzapWithConfig(t *testing.T) {
t.Fatalf("logged path should be /test but %s", pathStr)
}

err := timestampLocationCheck(logLine.Context[6].String, time.UTC)
err := timestampLocationCheck(logLine.Context[7].String, time.UTC)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit fad64cf

Please sign in to comment.