From f8a3d7f174a9b1082a5fe2eb16273e76b82f3378 Mon Sep 17 00:00:00 2001 From: Robert Boros Date: Mon, 24 Jun 2024 21:41:56 +0200 Subject: [PATCH] fixing typo --- middlewares/panicparse_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/middlewares/panicparse_test.go b/middlewares/panicparse_test.go index 4e270d5..614d5ba 100644 --- a/middlewares/panicparse_test.go +++ b/middlewares/panicparse_test.go @@ -17,11 +17,11 @@ import ( "github.com/stretchr/testify/require" ) -type panicParserWrtier struct { +type panicParserWriter struct { b *bytes.Buffer } -func (w *panicParserWrtier) Write(b []byte) (n int, err error) { +func (w *panicParserWriter) Write(b []byte) (n int, err error) { w.b.Write(b) w.b.WriteByte(byte('\n')) return len(b) + 1, nil @@ -33,7 +33,7 @@ func TestPanicParser_Parse(t *testing.T) { var parsed []stackLine oldRecovererErrorWriter := recovererErrorWriter defer func() { recovererErrorWriter = oldRecovererErrorWriter }() - w := panicParserWrtier{b: bytes.NewBuffer(nil)} + w := panicParserWriter{b: bytes.NewBuffer(nil)} recovererErrorWriter = &w r.Use(Recoverer)