1
0
mirror of https://github.com/ceph/go-ceph synced 2025-03-23 11:26:54 +00:00

rados: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu 2023-07-08 13:56:49 +08:00 committed by mergify[bot]
parent 0d7e4e6347
commit 8638693136

View File

@ -3,7 +3,6 @@ package rados
import ( import (
"fmt" "fmt"
"io" "io"
"io/ioutil"
"math/rand" "math/rand"
"os" "os"
"sort" "sort"
@ -216,7 +215,7 @@ func (suite *RadosTestSuite) TestReadConfigFile() {
assert.NoError(suite.T(), err) assert.NoError(suite.T(), err)
// create conf file that changes log_file conf option // create conf file that changes log_file conf option
file, err := ioutil.TempFile("/tmp", "go-rados") file, err := os.CreateTemp("/tmp", "go-rados")
require.NoError(suite.T(), err) require.NoError(suite.T(), err)
defer func() { defer func() {
assert.NoError(suite.T(), file.Close()) assert.NoError(suite.T(), file.Close())