Skip to content

Commit

Permalink
fix minor things
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviasaa committed Oct 20, 2023
1 parent 45eee25 commit 2c1e756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mana_decay_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ func TestManaDecay_PotentialMana(t *testing.T) {
name: "check if mana decay works for exactly the amount of epochs in the lookup table",
amount: math.MaxInt64,
createdSlot: testTimeProvider.EpochStart(1),
targetSlot: testTimeProvider.EpochStart(iotago.EpochIndex(365 + 1)),
targetSlot: testTimeProvider.EpochStart(iotago.EpochIndex(len(testManaDecayFactors) + 1)),
result: 176096765253977030,
wantErr: nil,
},
{
name: "check if mana decay works for multiples of the available epochs in the lookup table",
amount: math.MaxInt64,
createdSlot: testTimeProvider.EpochStart(1),
targetSlot: testTimeProvider.EpochStart(iotago.EpochIndex(3*365 + 1)),
targetSlot: testTimeProvider.EpochStart(iotago.EpochIndex(3*len(testManaDecayFactors) + 1)),
result: 398066497737349705,
wantErr: nil,
},
Expand Down

0 comments on commit 2c1e756

Please sign in to comment.