Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: remove redundant checking from TestParticipationAccountsExpirationFuture #3043

Merged
merged 2 commits into from
Oct 12, 2021
Merged

testing: remove redundant checking from TestParticipationAccountsExpirationFuture #3043

merged 2 commits into from
Oct 12, 2021

Conversation

AlgoStephenAkiki
Copy link
Contributor

@AlgoStephenAkiki AlgoStephenAkiki commented Oct 12, 2021

Summary

Reduce unneeded tests from TestParticipationAccountsExpirationFuture.

Resolves #3042

Test Plan

This is a test

Resolves #3042

Removes the irrelevant balance checking code
Comment on lines 54 to 59
amt, err := sClient.GetBalance(sAccount)
a.NoError(err)
sNodeStatus, err := sClient.Status()
a.NoError(err)
seededRound := sNodeStatus.LastRound
a.Equal(amountToSendInitial, amt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this check need to be kept : it verifies that the above transaction truly takes place.

Comment on lines -104 to -105
amt, err = sClient.GetBalance(sAccount)
a.NoError(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I agree that this check can be safely removed.

@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2021

Codecov Report

Merging #3043 (4aba9e6) into master (a516544) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3043   +/-   ##
=======================================
  Coverage   43.65%   43.66%           
=======================================
  Files         391      391           
  Lines       86779    86779           
=======================================
+ Hits        37887    37889    +2     
  Misses      42864    42864           
+ Partials     6028     6026    -2     
Impacted Files Coverage Δ
ledger/blockqueue.go 81.03% <0.00%> (-2.88%) ⬇️
ledger/acctupdates.go 66.53% <0.00%> (-0.20%) ⬇️
data/abi/abi_type.go 91.81% <0.00%> (+0.90%) ⬆️
crypto/merkletrie/node.go 93.48% <0.00%> (+1.86%) ⬆️
crypto/merkletrie/trie.go 68.61% <0.00%> (+2.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a516544...4aba9e6. Read the comment docs.

@tsachiherman tsachiherman changed the title Removed amount checks testing: remove redundant checking from TestParticipationAccountsExpirationFuture Oct 12, 2021
@tsachiherman tsachiherman merged commit e86c53f into algorand:master Oct 12, 2021
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
…rationFuture (algorand#3043)

## Summary

Reduce unneeded tests from TestParticipationAccountsExpirationFuture.

Resolves algorand#3042

## Test Plan

This is a test
@egieseke egieseke mentioned this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Account Balance checks for expiration tests
3 participants