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

fix flaky axfer txn e2e test #2973

Merged
merged 2 commits into from
Sep 30, 2021
Merged

Conversation

shiqizng
Copy link
Contributor

Summary

The account balance check sometimes fails. This is because accounts with more than 1 algo are eligible to receive rewards and it varies when rewards would be added to an account.
This PR fixes this issue by funding accounts less than 1 algo.

@shiqizng shiqizng self-assigned this Sep 29, 2021

ASSETID=$(asset-create 1000000 --name "e2e" --unitname "e" | asset-id)
[ "$(balance "$SMALL")" = 997000 ] # 1000 fee
[ "$(balance "$SMALL")" = 996000 ] # 1000 fee

${gcmd} clerk send -a 1000000 -f "$ACCOUNT" -t "$APPACCT"
Copy link
Contributor

Choose a reason for hiding this comment

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

this one is still 1 Algo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. thanks.

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2021

Codecov Report

Merging #2973 (0955a7d) into master (734e727) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2973      +/-   ##
==========================================
- Coverage   47.61%   47.60%   -0.01%     
==========================================
  Files         358      358              
  Lines       57906    57906              
==========================================
- Hits        27570    27566       -4     
- Misses      27208    27213       +5     
+ Partials     3128     3127       -1     
Impacted Files Coverage Δ
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
ledger/blockqueue.go 81.03% <0.00%> (-2.88%) ⬇️
data/transactions/verify/txn.go 43.42% <0.00%> (-0.88%) ⬇️
network/wsPeer.go 74.37% <0.00%> (-0.84%) ⬇️
ledger/acctupdates.go 62.77% <0.00%> (-0.51%) ⬇️
catchup/service.go 70.12% <0.00%> (+0.77%) ⬆️
crypto/merkletrie/node.go 93.48% <0.00%> (+1.86%) ⬆️
crypto/merkletrie/trie.go 68.61% <0.00%> (+2.18%) ⬆️
util/metrics/counter.go 80.95% <0.00%> (+2.38%) ⬆️
util/metrics/gauge.go 70.66% <0.00%> (+2.66%) ⬆️

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 734e727...0955a7d. Read the comment docs.

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.

4 participants