Skip to content

Commit

Permalink
chore: add eventually check of rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jan 30, 2025
1 parent b3b8f67 commit 5bef2ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/btc_rewards_distribution_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,12 @@ func (s *BtcRewardsDistribution) Test5CheckRewardsFirstDelegations() {
s.True(del.Active)
}

// makes sure at least one has rewards
s.Eventually(func() bool {
_, err = n2.QueryRewardGauge(s.fp1.Address())
return err == nil
}, time.Minute, time.Second)

// The rewards distributed for the finality providers should be fp1 => 3x, fp2 => 1x
fp1DiffRewards, fp2DiffRewards, del1DiffRewards, del2DiffRewards := s.QueryRewardGauges(n2)
s.AddFinalityVoteUntilCurrentHeight()
Expand Down

0 comments on commit 5bef2ec

Please sign in to comment.