From b6aee5a23f382340edfc5ead67ddf493261bed44 Mon Sep 17 00:00:00 2001 From: gfanton <8671905+gfanton@users.noreply.github.com> Date: Wed, 19 Apr 2023 15:15:13 +0200 Subject: [PATCH] fix: remove deprecated ioutil Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> --- fsrepo_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fsrepo_test.go b/fsrepo_test.go index 6fc3d39..8330071 100644 --- a/fsrepo_test.go +++ b/fsrepo_test.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "crypto/rand" - "io/ioutil" "os" "path/filepath" "testing" @@ -20,7 +19,7 @@ import ( // swap arg order func testRepoPath(p string, t *testing.T) string { - dir, err := ioutil.TempDir(t.TempDir(), p) + dir, err := os.MkdirTemp(t.TempDir(), p) require.NoError(t, err) return filepath.Join(dir, "db.sqlite") }