From 63667626d96d6f24e1b68dad7eaf179c2ca71f92 Mon Sep 17 00:00:00 2001 From: Mengjiao Liu Date: Fri, 25 Feb 2022 16:01:37 +0800 Subject: [PATCH] Fix incorrect test cases to cover code that needs to be tested in `TestValidateIPSet` --- pkg/util/ipset/ipset_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/ipset/ipset_test.go b/pkg/util/ipset/ipset_test.go index 03e9d2245ff..030e83fa579 100644 --- a/pkg/util/ipset/ipset_test.go +++ b/pkg/util/ipset/ipset_test.go @@ -927,7 +927,7 @@ func TestValidateIPSet(t *testing.T) { { // case[3] ipset: &IPSet{ Name: "bar", - SetType: BitmapPort, + SetType: HashIPPort, HashFamily: ProtocolFamilyIPV6, HashSize: 0, MaxElem: 2048, @@ -938,7 +938,7 @@ func TestValidateIPSet(t *testing.T) { { // case[4] ipset: &IPSet{ Name: "baz", - SetType: BitmapPort, + SetType: HashIPPort, HashFamily: ProtocolFamilyIPV6, HashSize: 1024, MaxElem: -1,