Merge pull request #10594 from filecoin-project/phi/v1210-rc2
build: release: v1.21.0-rc2
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"embed"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
@@ -77,7 +77,7 @@ func TestImportLocal(t *testing.T) {
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
outBytes, err := ioutil.ReadFile(out1)
|
||||
outBytes, err := os.ReadFile(out1)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, b, outBytes)
|
||||
|
||||
@@ -128,7 +128,7 @@ func TestImportLocal(t *testing.T) {
|
||||
err = files.WriteTo(file, exportedPath)
|
||||
require.NoError(t, err)
|
||||
|
||||
exportedBytes, err := ioutil.ReadFile(exportedPath)
|
||||
exportedBytes, err := os.ReadFile(exportedPath)
|
||||
require.NoError(t, err)
|
||||
|
||||
// compare original file to recreated unixfs file.
|
||||
|
||||
Reference in New Issue
Block a user