Fix spelling in test for recovery of broken pipe (#1089)

This commit is contained in:
Justin Israel 2018-02-28 15:28:48 +13:00
parent 133a62dd11
commit d3bcb45bcc

View File

@ -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
@ -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)