Skip to content

Commit

Permalink
Merge branch 'add-prometheus-metrics-for-refactor-optimizer' of githu…
Browse files Browse the repository at this point in the history
…b.com:lavanet/lava into add-prometheus-metrics-for-refactor-optimizer
  • Loading branch information
ranlavanet committed Jan 30, 2025
2 parents 06c79f2 + f181203 commit 8ed5ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/rewards/keeper/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func TestValidatorBlockRewards(t *testing.T) {

// TestBlocksAndTimeToNextExpiry tests that the time/blocks to the next timer expiry are as expected
func TestBlocksAndTimeToNextExpiry(t *testing.T) {
testkeeper.SetFixedTime()
ts := newTester(t, false)

// TimeToNextTimerExpiry should be equal to the number of seconds in a month
Expand Down Expand Up @@ -349,6 +350,7 @@ func TestBondedTargetFactorEdgeCases(t *testing.T) {
// 1. There's a single timer at all times the expires after a month
// 2. The timer's data contains the months left before the allocation pool's funds are depleted
func TestRefillPoolsTimerStore(t *testing.T) {
testkeeper.SetFixedTime()
ts := newTester(t, false)
lifetime := int64(types.RewardsAllocationPoolsLifetime)

Expand Down
1 change: 1 addition & 0 deletions x/subscription/keeper/subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,7 @@ func TestSubscriptionAdvancePurchaseAnnuallyDiscount(t *testing.T) {
}

func TestSubscriptionUpgradeAffectsTimer(t *testing.T) {
keepertest.SetFixedTime()
ts := newTester(t)
ts.SetupAccounts(1, 0, 0) // 1 sub, 0 adm, 0 dev
_, consumerAddr := ts.Account("sub1")
Expand Down

0 comments on commit 8ed5ef3

Please sign in to comment.