Skip to content

Commit

Permalink
fix unit-test
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <[email protected]>
  • Loading branch information
msherif1234 committed Jan 14, 2025
1 parent f6b2996 commit cb0355d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/pipeline/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,14 @@ parameters:
someDuration := endTime.Sub(startTime)
_, err = flowSender.Client().Send(context.Background(), &pbflow.Records{
Entries: []*pbflow.Record{{
Interface: "eth0",
Interface: "eth0",
DupList: []*pbflow.DupMapEntry{
{
Interface: "eth0",
Direction: pbflow.Direction_EGRESS,
Udn: "udn-1",
},
},
EthProtocol: 2048,
Bytes: 456,
Packets: 123,
Expand Down Expand Up @@ -243,6 +250,7 @@ parameters:
"TimeFlowStartMs": float64(startTime.UnixMilli()),
"TimeFlowEndMs": float64(endTime.UnixMilli()),
"Interfaces": []interface{}{"eth0"},
"Udns": []interface{}{"udn-1"},
"AgentIP": "10.11.12.13",
"PktDropBytes": float64(100),
"PktDropPackets": float64(10),
Expand Down

0 comments on commit cb0355d

Please sign in to comment.