Skip to content

Commit

Permalink
Fix incorrect test cases to cover code that needs to be tested in `Te…
Browse files Browse the repository at this point in the history
…stValidateIPSet`
  • Loading branch information
Mengjiao Liu committed Feb 25, 2022
1 parent 3213a92 commit 6366762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/ipset/ipset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6366762

Please sign in to comment.