diff --git a/node/impl/client/import_test.go b/node/impl/client/import_test.go index e512be75f..952d0b211 100644 --- a/node/impl/client/import_test.go +++ b/node/impl/client/import_test.go @@ -29,7 +29,7 @@ func TestImportNormalFileToUnixfsDAG(t *testing.T) { defer os.Remove(carv2File) //nolint:errcheck // import a normal file to a Unixfs DAG using a CARv2 read-write blockstore and flush it out to a CARv2 file. - tempCARv2Store, err := blockstore.NewReadWrite(carv2File, []cid.Cid{}) + tempCARv2Store, err := blockstore.OpenReadWrite(carv2File, []cid.Cid{}) require.NoError(t, err) bsvc := blockservice.New(tempCARv2Store, offline.Exchange(tempCARv2Store)) root, err := importNormalFileToUnixfsDAG(ctx, inputPath, merkledag.NewDAGService(bsvc))