Skip to content

Commit

Permalink
fix: better import name
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 25, 2023
1 parent 9cf292e commit e27c473
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions data/builder/dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/ipfs/go-cid"
u "github.com/ipfs/go-ipfs-util"
ipfsutil "github.com/ipfs/go-ipfs-util"
"github.com/ipfs/go-unixfsnode"
dagpb "github.com/ipld/go-codec-dagpb"
"github.com/ipld/go-ipld-prime"
Expand Down Expand Up @@ -43,7 +43,7 @@ func TestBuildUnixFSFileWrappedInDirectory_Reference(t *testing.T) {
for _, tc := range referenceTestCases {
t.Run(strconv.Itoa(tc.size), func(t *testing.T) {
buf := make([]byte, tc.size)
u.NewSeededRand(0xdeadbeef).Read(buf)
ipfsutil.NewSeededRand(0xdeadbeef).Read(buf)
r := bytes.NewReader(buf)

ls := cidlink.DefaultLinkSystem()
Expand Down
6 changes: 3 additions & 3 deletions data/builder/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/ipfs/go-cid"
u "github.com/ipfs/go-ipfs-util"
ipfsutil "github.com/ipfs/go-ipfs-util"
"github.com/ipfs/go-unixfsnode/file"
dagpb "github.com/ipld/go-codec-dagpb"
"github.com/ipld/go-ipld-prime"
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestBuildUnixFSFile_Reference(t *testing.T) {
for _, tc := range referenceTestCases {
t.Run(strconv.Itoa(tc.size), func(t *testing.T) {
buf := make([]byte, tc.size)
u.NewSeededRand(0xdeadbeef).Read(buf)
ipfsutil.NewSeededRand(0xdeadbeef).Read(buf)
r := bytes.NewReader(buf)

ls := cidlink.DefaultLinkSystem()
Expand All @@ -74,7 +74,7 @@ func TestBuildUnixFSFile_Reference(t *testing.T) {

func TestUnixFSFileRoundtrip(t *testing.T) {
buf := make([]byte, 10*1024*1024)
u.NewSeededRand(0xdeadbeef).Read(buf)
ipfsutil.NewSeededRand(0xdeadbeef).Read(buf)
r := bytes.NewReader(buf)

ls := cidlink.DefaultLinkSystem()
Expand Down
4 changes: 2 additions & 2 deletions test/partial_file_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"testing"

u "github.com/ipfs/go-ipfs-util"
ipfsutil "github.com/ipfs/go-ipfs-util"
"github.com/ipfs/go-unixfsnode/data/builder"
"github.com/ipfs/go-unixfsnode/file"
dagpb "github.com/ipld/go-codec-dagpb"
Expand All @@ -21,7 +21,7 @@ import (

func TestPartialFileAccess(t *testing.T) {
buf := make([]byte, 10*1024*1024)
u.NewSeededRand(0xdeadbeef).Read(buf)
ipfsutil.NewSeededRand(0xdeadbeef).Read(buf)
r := bytes.NewReader(buf)

ls := cidlink.DefaultLinkSystem()
Expand Down

0 comments on commit e27c473

Please sign in to comment.