controller: add non-exist node test case
This commit is contained in:
@@ -152,7 +152,7 @@ func (m *FakeNodeHandler) Get(ctx context.Context, name string, opts metav1.GetO
|
||||
return &nodeCopy, nil
|
||||
}
|
||||
}
|
||||
return nil, nil
|
||||
return nil, apierrors.NewNotFound(schema.GroupResource{Resource: "nodes"}, name)
|
||||
}
|
||||
|
||||
func (m *FakeNodeHandler) runAsyncCalls() {
|
||||
|
Reference in New Issue
Block a user