Fix incorrect test cases to cover code that needs to be tested in TestValidateIPSet

This commit is contained in:
Mengjiao Liu 2022-02-25 16:01:37 +08:00
parent 3213a92802
commit 63667626d9

View File

@ -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,