Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Oct 29, 2023
1 parent ebb74a7 commit b7b2026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api_tests/chimney_blobber_rewards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func Test1ChimneyBlobberRewards(testSetup *testing.T) {
actualWritePoolBalance = float64(alloc.WritePool)
actualMovedToChallenge = float64(alloc.MovedToChallenge)

allocDuration := allocExpiredAt - allocCreatedAt - 240
allocDuration := allocExpiredAt - allocCreatedAt - 300
prevAllocDuration := prevAlloc.Expiration - prevAlloc.StartTime
durationInTimeUnits := float64(allocDuration) / float64(prevAllocDuration)
t.Logf("Alloc duration: %v", durationInTimeUnits)
Expand Down Expand Up @@ -400,7 +400,7 @@ func Test1ChimneyBlobberRewards(testSetup *testing.T) {
require.InEpsilon(t, actualBlockRewardForBlobber.TotalReward*(1.0-blobber.StakePoolSettings.ServiceCharge), actualBlockRewardForBlobber.TotalDelegateReward, standardErrorMargin, "Expected delegate reward is not equal to actual")
}

require.InEpsilon(t, expectedBlockReward, actualBlockReward, standardErrorMargin, "Expected block reward is not equal to actual")
require.InEpsilon(t, expectedBlockReward, actualBlockReward, extraErrorMargin, "Expected block reward is not equal to actual")

// Check Blobber Partitions are selected evenly
for blobberId, frequncy := range blobberPartitionSelection {
Expand Down

0 comments on commit b7b2026

Please sign in to comment.