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: modify TestAccountInformationV2 to wait for transaction #3098

Conversation

tsachiherman
Copy link
Contributor

Summary

This change wait for a given broadcasted transaction to be included instead of expecting it to be included after a predetermined number of rounds. This would increase the testing platform flexibility in case we're testing on slow machines.

Test Plan

This is a test.

@tsachiherman tsachiherman self-assigned this Oct 19, 2021
@tsachiherman tsachiherman marked this pull request as ready for review October 20, 2021 13:50
Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

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

Looks good, but not fully immune from timing issues.

}
a.Equal(uint64(0), resp.TotalTxns)
break
}
Copy link
Contributor

Choose a reason for hiding this comment

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

checkEvalDelta on line 318 will still impose certain expectations on the round / test timing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed it here to address the failure noted in circle-ci.. But if we'll see failures coming from the evalDelta then we should probably implement a similar fix there as well.

@tsachiherman tsachiherman merged commit c2054e5 into algorand:master Oct 20, 2021
@tsachiherman tsachiherman deleted the tsachi/longerwaitTestAccountInformationV2 branch October 20, 2021 16:15
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
## Summary

This change wait for a given broadcasted transaction to be included instead of expecting it to be included after a predetermined number of rounds. This would increase the testing platform flexibility in case we're testing on slow machines.

## 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.

2 participants