From b2e1d4937981875a8e174a24bfc4b45b81f01c2a Mon Sep 17 00:00:00 2001 From: graysonwu Date: Mon, 8 Jan 2024 09:26:19 -0800 Subject: [PATCH] Address comment Signed-off-by: graysonwu --- pkg/agent/controller/networkpolicy/reject_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/controller/networkpolicy/reject_test.go b/pkg/agent/controller/networkpolicy/reject_test.go index d6d596c8ba1..d3343af5c93 100644 --- a/pkg/agent/controller/networkpolicy/reject_test.go +++ b/pkg/agent/controller/networkpolicy/reject_test.go @@ -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" @@ -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