mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
remove unwanted newlines
This commit is contained in:
@@ -51,9 +51,8 @@ type TestServer struct {
|
|||||||
// and location of the tmpdir are returned.
|
// 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
|
// 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
|
||||||
// files that because Golang testing's call to os.Exit will not give a stop channel go routine
|
// enough time to remove temporary files.
|
||||||
// enough time to remove temporary files.
|
|
||||||
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
|
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
|
||||||
logger := klog.FromContext(ctx)
|
logger := klog.FromContext(ctx)
|
||||||
stopCh := make(chan struct{})
|
stopCh := make(chan struct{})
|
||||||
|
@@ -52,7 +52,6 @@ type TestServer struct {
|
|||||||
// and location of the tmpdir are returned.
|
// 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
|
// 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
|
// files that because Golang testing's call to os.Exit will not give a stop channel go routine
|
||||||
// enough time to remove temporary files.
|
// enough time to remove temporary files.
|
||||||
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
|
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
|
||||||
|
@@ -289,6 +289,5 @@ func intPtr(x int) *int {
|
|||||||
func fakeCloudProviderFactory(io.Reader) (cloudprovider.Interface, error) {
|
func fakeCloudProviderFactory(io.Reader) (cloudprovider.Interface, error) {
|
||||||
return &fake.Cloud{
|
return &fake.Cloud{
|
||||||
DisableRoutes: true, // disable routes for server tests, otherwise --cluster-cidr is required
|
DisableRoutes: true, // disable routes for server tests, otherwise --cluster-cidr is required
|
||||||
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user