tcp text context
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-05-11 21:45:06 +01:00
parent edfd5a9009
commit 44c0d24eca

View File

@ -18,7 +18,7 @@ func TestFlow_Consume(t *testing.T) {
t.Run("Length", func(t *testing.T) { t.Run("Length", func(t *testing.T) {
testConn := mocks.NewMockPerfectBiStreamConn(100) testConn := mocks.NewMockPerfectBiStreamConn(100)
flowA := NewFlowConn(testConn.SideA()) flowA := NewFlowConn(context.Background(), testConn.SideA())
err := flowA.Consume(context.Background(), testPacket, testMac) err := flowA.Consume(context.Background(), testPacket, testMac)
require.Nil(t, err) require.Nil(t, err)
@ -42,7 +42,7 @@ func TestFlow_Produce(t *testing.T) {
t.Run("Length", func(t *testing.T) { t.Run("Length", func(t *testing.T) {
testConn := mocks.NewMockPerfectBiStreamConn(100) testConn := mocks.NewMockPerfectBiStreamConn(100)
flowA := NewFlowConn(testConn.SideA()) flowA := NewFlowConn(context.Background(), testConn.SideA())
_, err := testConn.SideB().Write(testMarshalled) _, err := testConn.SideB().Write(testMarshalled)
require.Nil(t, err) require.Nil(t, err)
@ -55,7 +55,7 @@ func TestFlow_Produce(t *testing.T) {
t.Run("Value", func(t *testing.T) { t.Run("Value", func(t *testing.T) {
testConn := mocks.NewMockPerfectBiStreamConn(100) testConn := mocks.NewMockPerfectBiStreamConn(100)
flowA := NewFlowConn(testConn.SideA()) flowA := NewFlowConn(context.Background(), testConn.SideA())
_, err := testConn.SideB().Write(testMarshalled) _, err := testConn.SideB().Write(testMarshalled)
require.Nil(t, err) require.Nil(t, err)