Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Jan 15, 2025
1 parent 9750302 commit 00e799b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dataplane/saiserver/hostif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func TestCPUPacketStream(t *testing.T) {
}
})
t.Run("recv", func(t *testing.T) {
if _, err := p.Write(testPacket(t, uint64(p.NID()))); err != nil {
if _, err := p.Write(createPacket(t, uint64(p.NID()))); err != nil {
t.Fatal(err)
}
got, err := s.Recv()
Expand All @@ -282,7 +282,8 @@ func TestCPUPacketStream(t *testing.T) {
})
}

func testPacket(t testing.TB, nid uint64) fwdpacket.Packet {
func createPacket(t testing.TB, nid uint64) fwdpacket.Packet {
t.Helper()
eth := &layers.Ethernet{
SrcMAC: parseMac(t, "00:00:00:00:00:01"),
DstMAC: parseMac(t, "00:00:00:00:00:02"),
Expand Down

0 comments on commit 00e799b

Please sign in to comment.