retrieval: fix actor tests
This commit is contained in:
parent
eedd098295
commit
6b80b98c64
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user