mirror of
https://github.com/ceph/go-ceph
synced 2025-03-11 05:48:22 +00:00
rados: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
parent
0d7e4e6347
commit
8638693136
@ -3,7 +3,6 @@ package rados
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"os"
|
||||
"sort"
|
||||
@ -216,7 +215,7 @@ func (suite *RadosTestSuite) TestReadConfigFile() {
|
||||
assert.NoError(suite.T(), err)
|
||||
|
||||
// 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)
|
||||
defer func() {
|
||||
assert.NoError(suite.T(), file.Close())
|
||||
|
Loading…
Reference in New Issue
Block a user