Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
borosr committed Jun 24, 2024
1 parent 40a8ff7 commit f8a3d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middlewares/panicparse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit f8a3d7f

Please sign in to comment.