diff --git a/zap_test.go b/zap_test.go index 7b71a0e..6307c2e 100644 --- a/zap_test.go +++ b/zap_test.go @@ -24,7 +24,7 @@ func buildDummyLogger() (*zap.Logger, *observer.ObservedLogs) { return logger, obs } -func timestampLocationCheck(t *testing.T, timestampStr string, location *time.Location) error { +func timestampLocationCheck(timestampStr string, location *time.Location) error { timestamp, err := time.Parse(time.RFC3339, timestampStr) if err != nil { return err @@ -63,7 +63,7 @@ func TestGinzap(t *testing.T) { t.Fatalf("logged path should be /test but %s", pathStr) } - err := timestampLocationCheck(t, logLine.Context[7].String, time.UTC) + err := timestampLocationCheck(logLine.Context[7].String, time.UTC) if err != nil { t.Fatal(err) } @@ -120,7 +120,7 @@ func TestGinzapWithConfig(t *testing.T) { t.Fatalf("logged path should be /test but %s", pathStr) } - err := timestampLocationCheck(t, logLine.Context[7].String, time.UTC) + err := timestampLocationCheck(logLine.Context[7].String, time.UTC) if err != nil { t.Fatal(err) }