fix node_test

This commit is contained in:
Łukasz Magiera 2019-12-03 02:41:31 +01:00
parent 536c9985ab
commit ad27131dcf

View File

@ -4,6 +4,7 @@ import (
"bytes" "bytes"
"context" "context"
"crypto/rand" "crypto/rand"
"github.com/filecoin-project/lotus/build"
"io/ioutil" "io/ioutil"
"net/http/httptest" "net/http/httptest"
"path/filepath" "path/filepath"
@ -39,6 +40,8 @@ import (
func init() { func init() {
_ = logging.SetLogLevel("*", "INFO") _ = logging.SetLogLevel("*", "INFO")
build.SectorSizes = []uint64{1024}
} }
func testStorageNode(ctx context.Context, t *testing.T, waddr address.Address, act address.Address, pk crypto.PrivKey, tnd test.TestNode, mn mocknet.Mocknet) test.TestStorageNode { func testStorageNode(ctx context.Context, t *testing.T, waddr address.Address, act address.Address, pk crypto.PrivKey, tnd test.TestNode, mn mocknet.Mocknet) test.TestStorageNode {