From 53ca3b64e183e5b8e42b12dbea842ae2c8bac5e0 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 22 Apr 2022 11:46:37 +0300 Subject: [PATCH] normalize itest PrecommitChallengeDelay to 10, matching the test bundles --- itests/deals_anycid_test.go | 2 +- itests/deals_concurrent_test.go | 6 +++--- itests/deals_padding_test.go | 2 +- itests/deals_partial_retrieval_dm-level_test.go | 2 +- itests/deals_partial_retrieval_test.go | 2 +- itests/deals_retry_deal_no_funds_test.go | 6 +++--- itests/deals_test.go | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/itests/deals_anycid_test.go b/itests/deals_anycid_test.go index 8e061af29..f504ead86 100644 --- a/itests/deals_anycid_test.go +++ b/itests/deals_anycid_test.go @@ -32,7 +32,7 @@ func TestDealRetrieveByAnyCid(t *testing.T) { ctx := context.Background() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) }) diff --git a/itests/deals_concurrent_test.go b/itests/deals_concurrent_test.go index 015cf03a1..53aa0c782 100644 --- a/itests/deals_concurrent_test.go +++ b/itests/deals_concurrent_test.go @@ -40,7 +40,7 @@ func TestDealWithMarketAndMinerNode(t *testing.T) { kit.QuietMiningLogs() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) }) @@ -92,7 +92,7 @@ func TestDealCyclesConcurrent(t *testing.T) { } oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) }) @@ -143,7 +143,7 @@ func TestSimultanenousTransferLimit(t *testing.T) { kit.QuietMiningLogs() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) }) diff --git a/itests/deals_padding_test.go b/itests/deals_padding_test.go index c79b6a7db..9ac736f8c 100644 --- a/itests/deals_padding_test.go +++ b/itests/deals_padding_test.go @@ -26,7 +26,7 @@ func TestDealPadding(t *testing.T) { var blockTime = 250 * time.Millisecond startEpoch := abi.ChainEpoch(2 << 12) - policy.SetPreCommitChallengeDelay(2) + policy.SetPreCommitChallengeDelay(10) client, miner, ens := kit.EnsembleMinimal(t, kit.ThroughRPC(), kit.WithAllSubsystems()) // no mock proofs. ens.InterconnectAll().BeginMining(blockTime) diff --git a/itests/deals_partial_retrieval_dm-level_test.go b/itests/deals_partial_retrieval_dm-level_test.go index 4b1a5b0e3..7cb1d9b77 100644 --- a/itests/deals_partial_retrieval_dm-level_test.go +++ b/itests/deals_partial_retrieval_dm-level_test.go @@ -46,7 +46,7 @@ func TestDMLevelPartialRetrieval(t *testing.T) { //stm: @CLIENT_RETRIEVAL_RETRIEVE_001, @CLIENT_RETRIEVAL_FIND_001 ctx := context.Background() - policy.SetPreCommitChallengeDelay(2) + policy.SetPreCommitChallengeDelay(10) kit.QuietMiningLogs() client, miner, ens := kit.EnsembleMinimal(t, kit.ThroughRPC(), kit.MockProofs()) dh := kit.NewDealHarness(t, client, miner, miner) diff --git a/itests/deals_partial_retrieval_test.go b/itests/deals_partial_retrieval_test.go index abc5cf411..5e7f073f0 100644 --- a/itests/deals_partial_retrieval_test.go +++ b/itests/deals_partial_retrieval_test.go @@ -48,7 +48,7 @@ func TestPartialRetrieval(t *testing.T) { //stm: @CLIENT_RETRIEVAL_RETRIEVE_001 ctx := context.Background() - policy.SetPreCommitChallengeDelay(2) + policy.SetPreCommitChallengeDelay(10) kit.EnableLargeSectors(t) kit.QuietMiningLogs() client, miner, ens := kit.EnsembleMinimal(t, kit.ThroughRPC(), kit.MockProofs(), kit.SectorSize(512<<20)) diff --git a/itests/deals_retry_deal_no_funds_test.go b/itests/deals_retry_deal_no_funds_test.go index a14a0d085..cede2a8ab 100644 --- a/itests/deals_retry_deal_no_funds_test.go +++ b/itests/deals_retry_deal_no_funds_test.go @@ -36,7 +36,7 @@ func TestDealsRetryLackOfFunds(t *testing.T) { //stm: @CLIENT_STORAGE_DEALS_LIST_IMPORTS_001 ctx := context.Background() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) @@ -120,7 +120,7 @@ func TestDealsRetryLackOfFunds_blockInPublishDeal(t *testing.T) { //stm: @CLIENT_STORAGE_DEALS_LIST_IMPORTS_001 ctx := context.Background() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) @@ -201,7 +201,7 @@ func TestDealsRetryLackOfFunds_belowLimit(t *testing.T) { //stm: @CLIENT_STORAGE_DEALS_LIST_IMPORTS_001 ctx := context.Background() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) diff --git a/itests/deals_test.go b/itests/deals_test.go index fb8e6e4f3..c7a2b2ad1 100644 --- a/itests/deals_test.go +++ b/itests/deals_test.go @@ -23,7 +23,7 @@ func TestDealsWithSealingAndRPC(t *testing.T) { kit.QuietMiningLogs() oldDelay := policy.GetPreCommitChallengeDelay() - policy.SetPreCommitChallengeDelay(5) + policy.SetPreCommitChallengeDelay(10) t.Cleanup(func() { policy.SetPreCommitChallengeDelay(oldDelay) })