mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
fmt
This commit is contained in:
parent
dce9741650
commit
8e2c7309eb
@ -1508,7 +1508,7 @@ func TestContextStream(t *testing.T) {
|
|||||||
c, _ := CreateTestContext(w)
|
c, _ := CreateTestContext(w)
|
||||||
|
|
||||||
stopStream := true
|
stopStream := true
|
||||||
c.Stream(func (w io.Writer) bool {
|
c.Stream(func(w io.Writer) bool {
|
||||||
defer func() {
|
defer func() {
|
||||||
stopStream = false
|
stopStream = false
|
||||||
}()
|
}()
|
||||||
@ -1525,7 +1525,7 @@ func TestContextStreamWithClientGone(t *testing.T) {
|
|||||||
w := CreateTestResponseRecorder()
|
w := CreateTestResponseRecorder()
|
||||||
c, _ := CreateTestContext(w)
|
c, _ := CreateTestContext(w)
|
||||||
|
|
||||||
c.Stream(func (writer io.Writer) bool {
|
c.Stream(func(writer io.Writer) bool {
|
||||||
defer func() {
|
defer func() {
|
||||||
w.closeClient()
|
w.closeClient()
|
||||||
}()
|
}()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user