diff --git a/mana_decay_provider_test.go b/mana_decay_provider_test.go index acc0bb357..c4b35f921 100644 --- a/mana_decay_provider_test.go +++ b/mana_decay_provider_test.go @@ -242,7 +242,7 @@ 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, }, @@ -250,7 +250,7 @@ func TestManaDecay_PotentialMana(t *testing.T) { 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, },