Skip to content

Commit 93cb397

Browse files
committed
chore: replace deprecated ioutil
1 parent 46f4078 commit 93cb397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cache_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cache
22

33
import (
44
"bytes"
5-
"io/ioutil"
5+
"os"
66
"runtime"
77
"strconv"
88
"sync"
@@ -1378,7 +1378,7 @@ func TestFileSerialization(t *testing.T) {
13781378
tc := New(DefaultExpiration, 0)
13791379
tc.Add("a", "a", DefaultExpiration)
13801380
tc.Add("b", "b", DefaultExpiration)
1381-
f, err := ioutil.TempFile("", "go-cache-cache.dat")
1381+
f, err := os.CreateTemp("", "go-cache-cache.dat")
13821382
if err != nil {
13831383
t.Fatal("Couldn't create cache file:", err)
13841384
}

0 commit comments

Comments
 (0)