mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 16:21:50 +00:00
fix review comments
This commit is contained in:
@@ -603,7 +603,7 @@ func Test_validatePortRange(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for i := range testCases {
|
||||
valid, _ := validatePortRange(testCases[i].portRange)
|
||||
valid := validatePortRange(testCases[i].portRange)
|
||||
if valid != testCases[i].valid {
|
||||
t.Errorf("case [%d]: unexpected mismatch, expect valid[%v], got valid[%v], desc: %s", i, testCases[i].valid, valid, testCases[i].desc)
|
||||
}
|
||||
@@ -789,7 +789,7 @@ func TestValidateIPSet(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for i := range testCases {
|
||||
valid, _ := testCases[i].ipset.Validate()
|
||||
valid := testCases[i].ipset.Validate()
|
||||
if valid != testCases[i].valid {
|
||||
t.Errorf("case [%d]: unexpected mismatch, expect valid[%v], got valid[%v], desc: %s", i, testCases[i].valid, valid, testCases[i].desc)
|
||||
}
|
||||
@@ -1294,7 +1294,7 @@ func TestValidateEntry(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for i := range testCases {
|
||||
valid, _ := testCases[i].entry.Validate(testCases[i].set)
|
||||
valid := testCases[i].entry.Validate(testCases[i].set)
|
||||
if valid != testCases[i].valid {
|
||||
t.Errorf("case [%d]: unexpected mismatch, expect valid[%v], got valid[%v], desc: %s", i, testCases[i].valid, valid, testCases[i].entry)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user