mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #108351 from mengjiao-liu/fix_ipset_test
Fix incorrect test cases to cover code that needs to be tested in `TestValidateIPSet`
This commit is contained in:
commit
54ee338758
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user