Use fake cid for test
This commit is contained in:
parent
b5c5e6627e
commit
d3eba74c04
@ -965,9 +965,9 @@ workflows:
|
|||||||
target: "./itests/paych_cli_test.go"
|
target: "./itests/paych_cli_test.go"
|
||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: test-itest-pending_deal_allocation_retrieval
|
name: test-itest-pending_deal_allocation
|
||||||
suite: itest-pending_deal_allocation_retrieval
|
suite: itest-pending_deal_allocation
|
||||||
target: "./itests/pending_deal_allocation_retrieval_test.go"
|
target: "./itests/pending_deal_allocation_test.go"
|
||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: test-itest-sdr_upgrade
|
name: test-itest-sdr_upgrade
|
||||||
|
@ -14,6 +14,7 @@ import (
|
|||||||
"github.com/filecoin-project/go-state-types/big"
|
"github.com/filecoin-project/go-state-types/big"
|
||||||
"github.com/filecoin-project/go-state-types/builtin"
|
"github.com/filecoin-project/go-state-types/builtin"
|
||||||
markettypes "github.com/filecoin-project/go-state-types/builtin/v9/market"
|
markettypes "github.com/filecoin-project/go-state-types/builtin/v9/market"
|
||||||
|
migration "github.com/filecoin-project/go-state-types/builtin/v9/migration/test"
|
||||||
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
|
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
|
||||||
"github.com/filecoin-project/go-state-types/crypto"
|
"github.com/filecoin-project/go-state-types/crypto"
|
||||||
"github.com/filecoin-project/go-state-types/exitcode"
|
"github.com/filecoin-project/go-state-types/exitcode"
|
||||||
@ -121,21 +122,14 @@ func TestGetAllocationForPendingDeal(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, *dcap, datacap)
|
require.Equal(t, *dcap, datacap)
|
||||||
|
|
||||||
// Create a random file and import on the client.
|
pieceCid := migration.MakeCID("1", &markettypes.PieceCIDPrefix)
|
||||||
importedFile, _ := node.CreateImportFile(ctx, 1, 200)
|
|
||||||
|
|
||||||
// Get the piece size and commP
|
|
||||||
rootCid := importedFile.Root
|
|
||||||
pieceInfo, err := node.ClientDealPieceCID(ctx, rootCid)
|
|
||||||
require.NoError(t, err)
|
|
||||||
t.Log("FILE CID:", rootCid)
|
|
||||||
|
|
||||||
label, err := markettypes.NewLabelFromString("")
|
label, err := markettypes.NewLabelFromString("")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
dealProposal := markettypes.DealProposal{
|
dealProposal := markettypes.DealProposal{
|
||||||
PieceCID: pieceInfo.PieceCID,
|
PieceCID: pieceCid,
|
||||||
PieceSize: pieceInfo.PieceSize,
|
PieceSize: 1024,
|
||||||
Client: verifiedClientAddr,
|
Client: verifiedClientAddr,
|
||||||
Provider: miner.ActorAddr,
|
Provider: miner.ActorAddr,
|
||||||
Label: label,
|
Label: label,
|
Loading…
Reference in New Issue
Block a user