From fad64cf4c949cdb4917a5ab8499f8f3bf41c21ec Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 9 Dec 2021 12:08:57 +0800 Subject: [PATCH] fix: unit testing Signed-off-by: Bo-Yi Wu --- zap_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zap_test.go b/zap_test.go index f3680d0..425dcc4 100644 --- a/zap_test.go +++ b/zap_test.go @@ -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) } @@ -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) } @@ -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) }