Skip to content

Commit 2099c00

Browse files
authored
Merge pull request kubernetes#86745 from Aresforchina/fix-staticcheck-test01
Fix staticcheck failures of test/integration/replicationcontroller
2 parents 26b52e8 + bf47d14 commit 2099c00

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ test/integration/examples
6767
test/integration/framework
6868
test/integration/garbagecollector
6969
test/integration/master
70-
test/integration/replicationcontroller
7170
test/integration/scheduler_perf
7271
test/integration/ttlcontroller
7372
vendor/k8s.io/apimachinery/pkg/api/meta

test/integration/replicationcontroller/replicationcontroller_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,6 @@ func rmSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, *replication.
130130
return s, closeFn, rm, informers, clientSet
131131
}
132132

133-
func rmSimpleSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, clientset.Interface) {
134-
masterConfig := framework.NewIntegrationTestMasterConfig()
135-
_, s, closeFn := framework.RunAMaster(masterConfig)
136-
137-
config := restclient.Config{Host: s.URL}
138-
clientSet, err := clientset.NewForConfig(&config)
139-
if err != nil {
140-
t.Fatalf("Error in create clientset: %v", err)
141-
}
142-
return s, closeFn, clientSet
143-
}
144-
145133
// Run RC controller and informers
146134
func runControllerAndInformers(t *testing.T, rm *replication.ReplicationManager, informers informers.SharedInformerFactory, podNum int) chan struct{} {
147135
stopCh := make(chan struct{})

0 commit comments

Comments
 (0)