cleanup: fix static checks

fix SA1019 static check to replace
io/utils with os package

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2023-02-01 18:10:01 +01:00
committed by mergify[bot]
parent 8ccf6a805d
commit e9e33fb851
5 changed files with 6 additions and 12 deletions

View File

@ -19,7 +19,6 @@ package rbd
import (
"context"
"errors"
"io/ioutil"
"os"
"strings"
"testing"
@ -252,7 +251,7 @@ func TestStrategicActionOnLogFile(t *testing.T) {
var logFile [3]string
for i := 0; i < 3; i++ {
f, err := ioutil.TempFile(tmpDir, "rbd-*.log")
f, err := os.CreateTemp(tmpDir, "rbd-*.log")
if err != nil {
t.Errorf("creating tempfile failed: %v", err)
}