retrieval: fix actor tests

This commit is contained in:
Łukasz Magiera 2019-08-29 21:01:29 +02:00
parent eedd098295
commit 6b80b98c64
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package actors_test
import (
"github.com/filecoin-project/go-lotus/build"
"testing"
. "github.com/filecoin-project/go-lotus/chain/actors"
@ -32,7 +33,7 @@ func TestStorageMarketCreateMiner(t *testing.T) {
CreateStorageMinerParams{
Owner: ownerAddr,
Worker: workerAddr,
SectorSize: types.NewInt(SectorSize),
SectorSize: types.NewInt(build.SectorSize),
PeerID: "fakepeerid",
})
ApplyOK(t, ret)

View File

@ -3,6 +3,7 @@ package actors_test
import (
"context"
"encoding/binary"
"github.com/filecoin-project/go-lotus/build"
"testing"
. "github.com/filecoin-project/go-lotus/chain/actors"
@ -111,7 +112,7 @@ func TestStorageMarketActorCreateMiner(t *testing.T) {
params := &StorageMinerConstructorParams{
Worker: maddr,
SectorSize: types.NewInt(SectorSize),
SectorSize: types.NewInt(build.SectorSize),
PeerID: "fakepeerid",
}
enc, err := cbor.DumpObject(params)