-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add new transaction retry integration test #89
Add new transaction retry integration test #89
Conversation
heifner
commented
Apr 8, 2022
•
edited
Loading
edited
- Includes a fix for transaction retry expiration comparison.
- New integration test for transaction retry feature
tests/Node.py
Outdated
cmd="%s %s -v transfer -j %s %s" % ( | ||
Utils.EosClientPath, self.eosClientArgs(), source.name, destination.name) | ||
cmdRetry = "" | ||
if retry is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should either have a method for getting the retry cmd or else have a Retry class that gets created with the retry value and passed in and the to_string conversion could return the cmdRetry (default will be retry=Retry() and that will return ""), since this can really be passed along to any command that eventually calls send_transaction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
tests/Node.py
Outdated
@@ -752,6 +760,48 @@ def transferFunds(self, source, destination, amountStr, memo="memo", force=False | |||
|
|||
return self.waitForTransBlockIfNeeded(trans, waitForTransBlock, exitOnError=exitOnError) | |||
|
|||
# Trasfer funds. Returns (popen, cmdArr) for checkDelayedOutput | |||
def transferFundsAsync(self, source, destination, amountStr, memo="memo", force=False, exitOnError=True, retry=None): | |||
assert isinstance(amountStr, str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about making a __transferFundsCmdLine (or whatever the internal convention is) that created the cmd line for all transferFunds*** methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.