Merge pull request #94371 from bbyrne5/bmb-resourcequota-staticcheck-errorfix

fix staticcheck errors in resourcequota
This commit is contained in:
Kubernetes Prow Robot 2020-09-03 03:41:41 -07:00 committed by GitHub
commit 8296643fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
cluster/images/etcd/migrate
pkg/controller/podautoscaler
pkg/controller/replicaset
pkg/controller/resourcequota
pkg/volume/azure_dd
pkg/volume/testing
test/e2e/autoscaling

View File

@ -25,7 +25,7 @@ import (
"testing"
"time"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
@ -807,7 +807,7 @@ func TestSyncResourceQuota(t *testing.T) {
}
}
if usage == nil {
t.Errorf("test: %s,\nExpected update action usage, got none: actions:\n%v", testName, actions)
t.Fatalf("test: %s,\nExpected update action usage, got none: actions:\n%v", testName, actions)
}
// ensure usage is as expected
@ -1138,7 +1138,7 @@ func expectSyncNotBlocked(fakeDiscoveryClient *fakeServerResources, workerLock *
workerLockAcquired := make(chan struct{})
go func() {
workerLock.Lock()
workerLock.Unlock()
defer workerLock.Unlock()
close(workerLockAcquired)
}()
select {