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

View File

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