Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Aug 17, 2023
1 parent 055ca41 commit 56f838a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/tokenomics_tests/allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestAllocationRewards(testSetup *testing.T) {
require.Nil(t, err, "Error canceling allocation", strings.Join(output, "\n"))

// sleep for 10 seconds
time.Sleep(30 * time.Second)
time.Sleep(2 * time.Minute)

alloc = utils.GetAllocation(t, allocationId)
require.Equal(t, alloc.MovedToChallenge, movedToChallengePool, "MovedToChallenge should not change")
Expand Down Expand Up @@ -239,7 +239,6 @@ func TestAllocationRewards(testSetup *testing.T) {
})

t.RunSequentiallyWithTimeout("Create + Upload + Upgrade equal read price 0.1", (500*time.Minute)+(40*time.Second), func(t *test.SystemTest) {
t.Skip("Skipping test as it is failing on CI")
output, err := utils.CreateWallet(t, configPath)
require.Nil(t, err, "Error registering wallet", strings.Join(output, "\n"))

Expand Down Expand Up @@ -301,7 +300,7 @@ func TestAllocationRewards(testSetup *testing.T) {
require.Nil(t, err, "Error updating allocation", strings.Join(output, "\n"))

alloc = utils.GetAllocation(t, allocationId)
require.Equal(t, alloc.MovedToChallenge, movedToChallengePool, "MovedToChallenge should not change")
require.Greater(t, alloc.MovedToChallenge, movedToChallengePool, "MovedToChallenge should not change")

// sleep for 5 minutes
time.Sleep(5 * time.Minute)
Expand All @@ -313,7 +312,7 @@ func TestAllocationRewards(testSetup *testing.T) {
totalBlobberChallengereward += int64(v.(float64))
}

require.Equal(t, movedToChallengePool, totalBlobberChallengereward, "Total Blobber Challenge reward should not change")
require.Equal(t, alloc.MovedToChallenge, totalBlobberChallengereward, "Total Blobber Challenge reward should not change")
})
}

Expand Down

0 comments on commit 56f838a

Please sign in to comment.