mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 05:04:52 +00:00
apiextensions: fix npe in subresource test
This commit is contained in:
@@ -534,7 +534,7 @@ func TestValidateOnlyStatus(t *testing.T) {
|
|||||||
}
|
}
|
||||||
createdNoxuInstance, err = noxuResourceClient.UpdateStatus(createdNoxuInstance, metav1.UpdateOptions{})
|
createdNoxuInstance, err = noxuResourceClient.UpdateStatus(createdNoxuInstance, metav1.UpdateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("unexpected error: %v", err)
|
t.Fatalf("unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// update with .status.num = 15, expecting an error
|
// update with .status.num = 15, expecting an error
|
||||||
|
Reference in New Issue
Block a user