Skip to content

Commit

Permalink
Refactored challenge rewards tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Aug 9, 2023
1 parent 624e945 commit 65588e6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/tokenomics_tests/blobber_challenge_reward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,7 @@ func waitUntilAllocationIsFinalized(t *test.SystemTest, allocationID string) {
}

func assertChallengeRewardsForOneDelegateEach(t *test.SystemTest, allocationId string, blobberListString, validatorListString []string, filesize int64) {
waitToExpiryIsComplete := false

t.Cleanup(func() {
if !waitToExpiryIsComplete {
time.Sleep(5 * time.Minute)
}

tearDownRewardsTests(t, blobberListString, validatorListString, configPath, allocationId, 1)
})

Expand Down Expand Up @@ -351,7 +345,6 @@ func assertChallengeRewardsForOneDelegateEach(t *test.SystemTest, allocationId s

// sleep for 10 minutes
time.Sleep(5 * time.Minute)
waitToExpiryIsComplete = true

allocation := utils.GetAllocation(t, allocationId)

Expand Down Expand Up @@ -392,13 +385,7 @@ func assertChallengeRewardsForOneDelegateEach(t *test.SystemTest, allocationId s
}

func assertChallengeRewardsForTwoDelegatesEach(t *test.SystemTest, allocationId string, blobberListString, validatorListString []string, filesize int64, stakes []int64) {
waitToExpiryIsComplete := false

t.Cleanup(func() {
if !waitToExpiryIsComplete {
time.Sleep(5 * time.Minute)
}

tearDownRewardsTests(t, blobberListString, validatorListString, configPath, allocationId, 1)
})

Expand Down Expand Up @@ -433,7 +420,6 @@ func assertChallengeRewardsForTwoDelegatesEach(t *test.SystemTest, allocationId

// sleep for 10 minutes
time.Sleep(5 * time.Minute)
waitToExpiryIsComplete = true

allocation := utils.GetAllocation(t, allocationId)

Expand Down

0 comments on commit 65588e6

Please sign in to comment.