Skip to content

Commit

Permalink
fix: try test query again if result is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Oct 18, 2022
1 parent 277062b commit faca891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/testnode/full_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func (s *IntegrationTestSuite) Test_Liveness() {
var params *coretypes.ResultConsensusParams
// this query can be flaky with fast block times, so we repeat it multiple
// times in attempt to increase the probability of it working
for i := 0; i < 5; i++ {
for i := 0; i < 10; i++ {
params, err = s.cctx.Client.ConsensusParams(context.TODO(), nil)
if err != nil {
if err != nil || params == nil {
continue
}
break
Expand Down

0 comments on commit faca891

Please sign in to comment.