Skip to content

Commit

Permalink
fix: remove deprecated ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Apr 20, 2023
1 parent 30464a5 commit b6aee5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fsrepo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"crypto/rand"
"io/ioutil"
"os"
"path/filepath"
"testing"
Expand All @@ -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")
}
Expand Down

0 comments on commit b6aee5a

Please sign in to comment.