Skip to content

Commit 36b6a42

Browse files
committed
chore(staging/cloud-provider): rm ioutil
1 parent ed37370 commit 36b6a42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

staging/src/k8s.io/cloud-provider/app/testing/testserver.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package testing
1919
import (
2020
"context"
2121
"fmt"
22-
"io/ioutil"
2322
"net"
2423
"os"
2524
"strings"
@@ -99,7 +98,7 @@ func StartTestServer(ctx context.Context, customFlags []string) (result TestServ
9998
}
10099
}()
101100

102-
result.TmpDir, err = ioutil.TempDir("", "cloud-controller-manager")
101+
result.TmpDir, err = os.MkdirTemp("", "cloud-controller-manager")
103102
if err != nil {
104103
return result, fmt.Errorf("failed to create temp dir: %v", err)
105104
}

0 commit comments

Comments
 (0)