diff --git a/.circleci/config.yml b/.circleci/config.yml index 9cd1efe1b..6a2ef16fa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -965,9 +965,9 @@ workflows: target: "./itests/paych_cli_test.go" - test: - name: test-itest-pending_deal_allocation_retrieval - suite: itest-pending_deal_allocation_retrieval - target: "./itests/pending_deal_allocation_retrieval_test.go" + name: test-itest-pending_deal_allocation + suite: itest-pending_deal_allocation + target: "./itests/pending_deal_allocation_test.go" - test: name: test-itest-sdr_upgrade diff --git a/itests/pending_deal_allocation_retrieval_test.go b/itests/pending_deal_allocation_test.go similarity index 94% rename from itests/pending_deal_allocation_retrieval_test.go rename to itests/pending_deal_allocation_test.go index 703c1d8f7..fe08431d7 100644 --- a/itests/pending_deal_allocation_retrieval_test.go +++ b/itests/pending_deal_allocation_test.go @@ -14,6 +14,7 @@ import ( "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/go-state-types/builtin" 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" "github.com/filecoin-project/go-state-types/crypto" "github.com/filecoin-project/go-state-types/exitcode" @@ -121,21 +122,14 @@ func TestGetAllocationForPendingDeal(t *testing.T) { require.NoError(t, err) require.Equal(t, *dcap, datacap) - // Create a random file and import on the client. - 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) + pieceCid := migration.MakeCID("1", &markettypes.PieceCIDPrefix) label, err := markettypes.NewLabelFromString("") require.NoError(t, err) dealProposal := markettypes.DealProposal{ - PieceCID: pieceInfo.PieceCID, - PieceSize: pieceInfo.PieceSize, + PieceCID: pieceCid, + PieceSize: 1024, Client: verifiedClientAddr, Provider: miner.ActorAddr, Label: label,