Skip to content

Commit

Permalink
itests: increase deal size to 1MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Sep 7, 2021
1 parent 0216697 commit eb48e47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itests/deals_max_staging_deals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ func TestMaxStagingDeals(t *testing.T) {

client, miner, ens := kit.EnsembleMinimal(t,
kit.MockProofs(),
kit.WithMaxStagingDealsBytes(8192), // max 8KB staging deals
kit.SectorSize(512<<20), // 512MiB sectors.
kit.WithMaxStagingDealsBytes(2<<20), // max 1MiB staging deals
kit.SectorSize(512<<20), // 512MiB sectors.
)
ens.InterconnectAll().BeginMining(200 * time.Millisecond)

dh := kit.NewDealHarness(t, client, miner, miner)

client.WaitTillChain(ctx, kit.HeightAtLeast(5))

res, _ := client.CreateImportFile(ctx, 0, 8192) // 8KB file
res, _ := client.CreateImportFile(ctx, 0, 2<<20) // 1MiB file
list, err := client.ClientListImports(ctx)
require.NoError(t, err)
require.Len(t, list, 1)
require.Equal(t, res.Root, *list[0].Root)

res2, _ := client.CreateImportFile(ctx, 0, 4096)
res2, _ := client.CreateImportFile(ctx, 0, 2<<20)
list, err = client.ClientListImports(ctx)
require.NoError(t, err)
require.Len(t, list, 2)
Expand Down

0 comments on commit eb48e47

Please sign in to comment.