From 44c0d24ecabed3840424220b711c0e1edc94e9e4 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 11 May 2021 21:45:06 +0100 Subject: [PATCH] tcp text context --- tcp/flow_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcp/flow_test.go b/tcp/flow_test.go index 3d0b49c..eba5a0a 100644 --- a/tcp/flow_test.go +++ b/tcp/flow_test.go @@ -18,7 +18,7 @@ func TestFlow_Consume(t *testing.T) { t.Run("Length", func(t *testing.T) { testConn := mocks.NewMockPerfectBiStreamConn(100) - flowA := NewFlowConn(testConn.SideA()) + flowA := NewFlowConn(context.Background(), testConn.SideA()) err := flowA.Consume(context.Background(), testPacket, testMac) require.Nil(t, err) @@ -42,7 +42,7 @@ func TestFlow_Produce(t *testing.T) { t.Run("Length", func(t *testing.T) { testConn := mocks.NewMockPerfectBiStreamConn(100) - flowA := NewFlowConn(testConn.SideA()) + flowA := NewFlowConn(context.Background(), testConn.SideA()) _, err := testConn.SideB().Write(testMarshalled) require.Nil(t, err) @@ -55,7 +55,7 @@ func TestFlow_Produce(t *testing.T) { t.Run("Value", func(t *testing.T) { testConn := mocks.NewMockPerfectBiStreamConn(100) - flowA := NewFlowConn(testConn.SideA()) + flowA := NewFlowConn(context.Background(), testConn.SideA()) _, err := testConn.SideB().Write(testMarshalled) require.Nil(t, err)