diff --git a/cmd/kube-controller-manager/app/testing/testserver.go b/cmd/kube-controller-manager/app/testing/testserver.go index 43aaf46365a..f75fa335952 100644 --- a/cmd/kube-controller-manager/app/testing/testserver.go +++ b/cmd/kube-controller-manager/app/testing/testserver.go @@ -51,9 +51,8 @@ type TestServer struct { // and location of the tmpdir are returned. // // Note: we return a tear-down func instead of a stop channel because the later will leak temporary -// -// files that because Golang testing's call to os.Exit will not give a stop channel go routine -// enough time to remove temporary files. +// files that because Golang testing's call to os.Exit will not give a stop channel go routine +// enough time to remove temporary files. func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) { logger := klog.FromContext(ctx) stopCh := make(chan struct{}) diff --git a/staging/src/k8s.io/cloud-provider/app/testing/testserver.go b/staging/src/k8s.io/cloud-provider/app/testing/testserver.go index af5ed27c62b..4e96786defb 100644 --- a/staging/src/k8s.io/cloud-provider/app/testing/testserver.go +++ b/staging/src/k8s.io/cloud-provider/app/testing/testserver.go @@ -52,7 +52,6 @@ type TestServer struct { // and location of the tmpdir are returned. // // Note: we return a tear-down func instead of a stop channel because the later will leak temporary -// // files that because Golang testing's call to os.Exit will not give a stop channel go routine // enough time to remove temporary files. func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) { diff --git a/test/integration/serving/serving_test.go b/test/integration/serving/serving_test.go index 0eb5d07e001..4e95a866cb1 100644 --- a/test/integration/serving/serving_test.go +++ b/test/integration/serving/serving_test.go @@ -289,6 +289,5 @@ func intPtr(x int) *int { func fakeCloudProviderFactory(io.Reader) (cloudprovider.Interface, error) { return &fake.Cloud{ DisableRoutes: true, // disable routes for server tests, otherwise --cluster-cidr is required - }, nil }