fixed missing packet queue
This commit is contained in:
parent
1e8c7243a1
commit
9258bfec77
@ -107,7 +107,9 @@ func TestFlow_Produce(t *testing.T) {
|
||||
flowA.isAlive = true
|
||||
|
||||
go func() {
|
||||
_, err := flowA.readPacket(context.Background(), testConn.SideB())
|
||||
p, err := flowA.readPacket(context.Background(), testConn.SideB())
|
||||
assert.Nil(t, err)
|
||||
err = flowA.queueDatagram(context.Background(), p)
|
||||
assert.Nil(t, err)
|
||||
}()
|
||||
p, err := flowA.Produce(context.Background())
|
||||
@ -143,7 +145,9 @@ func TestFlow_Produce(t *testing.T) {
|
||||
flowA.isAlive = true
|
||||
|
||||
go func() {
|
||||
_, err := flowA.readPacket(context.Background(), testConn.SideB())
|
||||
p, err := flowA.readPacket(context.Background(), testConn.SideB())
|
||||
assert.Nil(t, err)
|
||||
err = flowA.queueDatagram(context.Background(), p)
|
||||
assert.Nil(t, err)
|
||||
}()
|
||||
p, err := flowA.Produce(context.Background())
|
||||
|
Loading…
Reference in New Issue
Block a user