Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
Signed-off-by: graysonwu <[email protected]>
  • Loading branch information
GraysonWu committed Jan 8, 2024
1 parent f88e59e commit b2e1d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/controller/networkpolicy/reject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ func Test_getRejectPacketOutMutateFunc(t *testing.T) {
}
}

// Only test RejectPodLocal and RejectServiceRemoteToExternal two reject types,
// considering other types branches are covered by other tests.
func Test_handleRejectRequest(t *testing.T) {
fakeSrcMac := "aa:aa:aa:aa:aa:aa"
fakeDstMac := "bb:bb:bb:bb:bb:bb"
Expand Down Expand Up @@ -553,8 +555,6 @@ func Test_handleRejectRequest(t *testing.T) {
},
MAC: net.HardwareAddr([]byte{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}),
}
// Only test RejectPodLocal and RejectServiceRemoteToExternal two reject types,
// considering other types branches are covered by the UTs above.
tests := []struct {
name string
packetIn *ofctrl.PacketIn
Expand Down

0 comments on commit b2e1d49

Please sign in to comment.