Skip to content

Commit

Permalink
update to test
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed Oct 15, 2024
1 parent b751b8b commit 01e19b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/e2e/btc_timestamping_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,12 @@ func (s *BTCTimestampingTestSuite) Test6InterceptFeeCollector() {
// at the 1st block of an epoch, the gauge does not exist since incentive's BeginBlock
// at this block accumulates rewards for BTC timestamping gauge for the previous block
// need to wait for a block to ensure the gauge is created
var btcTimestampingGauge *itypes.Gauge
var btcTimestampingGauge *itypes.BTCTimestampingGaugeResponse
s.Eventually(func() bool {
btcTimestampingGauge, err = nonValidatorNode.QueryBTCTimestampingGauge(curEpoch)
if err != nil {
return false
}
btcTimestampingGauge = response.Gauge
s.T().Logf("BTC timestamping gauge at current epoch %d: %s", curEpoch, btcTimestampingGauge.String())
return !btcTimestampingGauge.Coins.Empty()
}, time.Second*10, time.Second)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/configurer/chain/queries_incentive.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func (n *NodeConfig) QueryBTCTimestampingGauge(epoch uint64) (*incentivetypes.BT
return nil, err
}

return resp.Gauge.Gauge, nil
return resp.Gauge, nil
}

0 comments on commit 01e19b1

Please sign in to comment.