mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
improve stream response for http (#2564)
This commit is contained in:
@ -95,11 +95,11 @@ func Test_Issue2509(t *testing.T) {
|
||||
q.Push(1)
|
||||
q.Push(2)
|
||||
q.Push(3)
|
||||
t.Assert(q.Len(), 3)
|
||||
t.AssertLE(q.Len(), 3)
|
||||
t.Assert(<-q.C, 1)
|
||||
t.Assert(q.Len(), 2)
|
||||
t.AssertLE(q.Len(), 2)
|
||||
t.Assert(<-q.C, 2)
|
||||
t.Assert(q.Len(), 1)
|
||||
t.AssertLE(q.Len(), 1)
|
||||
t.Assert(<-q.C, 3)
|
||||
t.Assert(q.Len(), 0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user