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:
parent
0d7e4e6347
commit
8638693136
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user