mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #86947 from gavinfish/drfish_redundant_nil_check
Remove redundant nil check in apiserver integration test
This commit is contained in:
commit
8046feb2b3
@ -107,10 +107,6 @@ func TestPatchConflicts(t *testing.T) {
|
|||||||
}
|
}
|
||||||
// make sure the patch directive didn't get lost, and that an entry in the ownerReference list was deleted.
|
// make sure the patch directive didn't get lost, and that an entry in the ownerReference list was deleted.
|
||||||
found := findOwnerRefByUID(accessor.GetOwnerReferences(), UIDs[i])
|
found := findOwnerRefByUID(accessor.GetOwnerReferences(), UIDs[i])
|
||||||
if err != nil {
|
|
||||||
t.Errorf("%v", err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if found {
|
if found {
|
||||||
t.Errorf("patch of %s with $patch directive was ineffective, didn't delete the entry in the ownerReference slice: %#v", "secrets", UIDs[i])
|
t.Errorf("patch of %s with $patch directive was ineffective, didn't delete the entry in the ownerReference slice: %#v", "secrets", UIDs[i])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user