fix staticcheck errors in resourcequota

This commit is contained in:
Brian Byrne 2020-08-29 23:25:00 -04:00
parent c631e78173
commit a820a82785
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 {