Skip to content

Commit

Permalink
Merge pull request ipfs/go-filestore#60 from ipfs/web3-bot/sync
Browse files Browse the repository at this point in the history
sync: update CI config files

This commit was moved from ipfs/go-filestore@9ecaa20
  • Loading branch information
galargh authored Aug 31, 2022
2 parents 3f1d60e + e23fe44 commit c2c98d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions filestore/filestore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package filestore
import (
"bytes"
"context"
"io/ioutil"
"math/rand"
"os"
"testing"

dag "github.com/ipfs/go-merkledag"
Expand All @@ -21,7 +21,7 @@ var bg = context.Background()
func newTestFilestore(t *testing.T) (string, *Filestore) {
mds := ds.NewMapDatastore()

testdir, err := ioutil.TempDir("", "filestore-test")
testdir, err := os.MkdirTemp("", "filestore-test")
if err != nil {
t.Fatal(err)
}
Expand All @@ -34,7 +34,7 @@ func newTestFilestore(t *testing.T) (string, *Filestore) {
}

func makeFile(dir string, data []byte) (string, error) {
f, err := ioutil.TempFile(dir, "file")
f, err := os.CreateTemp(dir, "file")
if err != nil {
return "", err
}
Expand Down
3 changes: 2 additions & 1 deletion filestore/pb/dataobj.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2c98d0

Please sign in to comment.