replace ioutil with io and os for cluster/images/etcd;

bump the REVISION in Makefile to 5
This commit is contained in:
ahrtr
2021-10-30 14:34:56 +08:00
parent 8cc7d14588
commit f01ecfabf4
4 changed files with 6 additions and 9 deletions

View File

@@ -17,7 +17,6 @@ limitations under the License.
package main
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
@@ -156,7 +155,7 @@ func TestBackup(t *testing.T) {
}
func newTestPath(t *testing.T) string {
path, err := ioutil.TempDir("", "etcd-migrate-test-")
path, err := os.MkdirTemp("", "etcd-migrate-test-")
if err != nil {
t.Fatalf("Failed to create tmp dir for test: %v", err)
}