Skip to content

Commit

Permalink
Fix spelling in test for recovery of broken pipe (gin-gonic#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Feb 28, 2018
1 parent 133a62d commit d3bcb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestPanicWithAbort(t *testing.T) {
}

// TestPanicWithBrokenPipe asserts that recovery specifically handles
// writting responses to broken pipes
// writing responses to broken pipes
func TestPanicWithBrokenPipe(t *testing.T) {
const expectCode = 204

Expand All @@ -63,7 +63,7 @@ func TestPanicWithBrokenPipe(t *testing.T) {
router := New()
router.Use(RecoveryWithWriter(&buf))
router.GET("/recovery", func(c *Context) {
// Start writting response
// Start writing response
c.Header("X-Test", "Value")
c.Status(expectCode)

Expand Down

0 comments on commit d3bcb45

Please sign in to comment.