🌱 Refactor code to fix lint warning (#218)

* Refactor code to fix lint warning

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* enable lint for testing files

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2023-07-25 13:12:34 +08:00
committed by GitHub
parent e22faa4545
commit e810520961
145 changed files with 1218 additions and 935 deletions

View File

@@ -21,7 +21,6 @@ import (
clusterapiv1beta2 "open-cluster-management.io/api/cluster/v1beta2"
controllers "open-cluster-management.io/ocm/pkg/placement/controllers"
scheduling "open-cluster-management.io/ocm/pkg/placement/controllers/scheduling"
"open-cluster-management.io/ocm/test/integration/util"
)
@@ -103,7 +102,6 @@ func BenchmarkSchedulePlacements10000(b *testing.B) {
func benchmarkSchedulePlacements(b *testing.B, pnum, cnum int) {
var err error
ctx, cancel := context.WithCancel(context.Background())
scheduling.ResyncInterval = time.Second * 5
// start a kube-apiserver
testEnv := &envtest.Environment{