Skip to content

Commit

Permalink
TestSPWithCounterReset make it more tolerant (#4366)
Browse files Browse the repository at this point in the history
  • Loading branch information
algonautshant authored Aug 7, 2022
1 parent 6ae26a3 commit d96506d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e-go/features/stateproofs/stateproofs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ func TestSPWithCounterReset(t *testing.T) {
// Check that the first 2 stateproofs are added to the blockchain
round := uint64(0)
expectedSPRound := consensusParams.StateProofInterval * 2
for round < consensusParams.StateProofInterval*5 {
for round < consensusParams.StateProofInterval*10 {
round = params.LastRound

err := fixture.WaitForRound(round+1, 6*time.Second)
Expand Down Expand Up @@ -1023,7 +1023,7 @@ func TestSPWithCounterReset(t *testing.T) {
}
}
// If waited till round 20 and did not yet get the stateproof with last round 12, fail the test
require.Less(t, round, consensusParams.StateProofInterval*5)
require.Less(t, round, consensusParams.StateProofInterval*10)
}

func getWellformedSPTransaction(round uint64, genesisHash crypto.Digest, consensusParams config.ConsensusParams, t *testing.T) (stxn transactions.SignedTxn) {
Expand Down

0 comments on commit d96506d

Please sign in to comment.