diff --git a/api/test/deals.go b/api/test/deals.go index d549d249c..80dc7c37a 100644 --- a/api/test/deals.go +++ b/api/test/deals.go @@ -62,7 +62,7 @@ func TestDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration, carExport } }() - makeDeal(t, ctx, 6, client, miner) + makeDeal(t, ctx, 6, client, miner, carExport) mine = false fmt.Println("shutting down mining") @@ -100,15 +100,15 @@ func TestDoubleDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration) { } }() - makeDeal(t, ctx, 6, client, miner) - makeDeal(t, ctx, 7, client, miner) + makeDeal(t, ctx, 6, client, miner, false) + makeDeal(t, ctx, 7, client, miner, false) mine = false fmt.Println("shutting down mining") <-done } -func makeDeal(t *testing.T, ctx context.Context, rseed int, client *impl.FullNodeAPI, miner TestStorageNode) { +func makeDeal(t *testing.T, ctx context.Context, rseed int, client *impl.FullNodeAPI, miner TestStorageNode, carExport bool) { data := make([]byte, 1600) rand.New(rand.NewSource(6)).Read(data) diff --git a/node/node_test.go b/node/node_test.go index 9ef7b41e0..a6244c2a0 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -456,12 +456,12 @@ func TestAPIDealFlow(t *testing.T) { t.Run("TestDealFlow", func(t *testing.T) { test.TestDealFlow(t, mockSbBuilder, 10*time.Millisecond, false) }) - t.Run("TestDoubleDealFlow", func(t *testing.T) { - test.TestDoubleDealFlow(t, mockSbBuilder, 10*time.Millisecond, false) - }) t.Run("WithExportedCAR", func(t *testing.T) { test.TestDealFlow(t, mockSbBuilder, 10*time.Millisecond, true) }) + t.Run("TestDoubleDealFlow", func(t *testing.T) { + test.TestDoubleDealFlow(t, mockSbBuilder, 10*time.Millisecond) + }) } func TestAPIDealFlowReal(t *testing.T) {