mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
Fix spelling in test for recovery of broken pipe (#1089)
This commit is contained in:
parent
133a62dd11
commit
d3bcb45bcc
@ -46,7 +46,7 @@ func TestPanicWithAbort(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TestPanicWithBrokenPipe asserts that recovery specifically handles
|
// TestPanicWithBrokenPipe asserts that recovery specifically handles
|
||||||
// writting responses to broken pipes
|
// writing responses to broken pipes
|
||||||
func TestPanicWithBrokenPipe(t *testing.T) {
|
func TestPanicWithBrokenPipe(t *testing.T) {
|
||||||
const expectCode = 204
|
const expectCode = 204
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ func TestPanicWithBrokenPipe(t *testing.T) {
|
|||||||
router := New()
|
router := New()
|
||||||
router.Use(RecoveryWithWriter(&buf))
|
router.Use(RecoveryWithWriter(&buf))
|
||||||
router.GET("/recovery", func(c *Context) {
|
router.GET("/recovery", func(c *Context) {
|
||||||
// Start writting response
|
// Start writing response
|
||||||
c.Header("X-Test", "Value")
|
c.Header("X-Test", "Value")
|
||||||
c.Status(expectCode)
|
c.Status(expectCode)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user