fixed missing packet queue
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build was killed

This commit is contained in:
Jake Hillion 2021-05-13 22:58:05 +01:00
parent 1e8c7243a1
commit 9258bfec77

View File

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