mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-22 10:27:56 +00:00
Adds ineffassign to GO linter script.
Changes: - Enables ineffassign check in the verify scripts. - Fixes lint errs.
This commit is contained in:
@@ -1125,7 +1125,11 @@ func TestDeleteControllerAndExpectations(t *testing.T) {
|
||||
manager.deleteRS(rs)
|
||||
manager.syncReplicaSet(GetKey(rs, t))
|
||||
|
||||
if _, exists, err = manager.expectations.GetExpectations(rsKey); exists {
|
||||
_, exists, err = manager.expectations.GetExpectations(rsKey)
|
||||
if err != nil {
|
||||
t.Errorf("Failed to get controllee expectations: %v", err)
|
||||
}
|
||||
if exists {
|
||||
t.Errorf("Found expectations, expected none since the ReplicaSet has been deleted.")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user