-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix delegate test silently fail with batch #5476
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5476 +/- ##
=========================================
- Coverage 79.1% 79.1% -0.0%
=========================================
Files 817 817
Lines 71703 71703
Branches 8237 8240 +3
=========================================
- Hits 56721 56711 -10
- Misses 14982 14992 +10 🚀 New features to boost your workflow:
|
src/test/app/Batch_test.cpp
Outdated
tesSUCCESS, | ||
batch::outer(gw, seq, batchFee, tfAllOrNothing), | ||
batch::inner(jv1, seq + 1), | ||
// tecNO_DELEGATE_PERMISSION: not authorized by the delegating |
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.
It's failing on the first not the second right?
I think using the tfIndependent
flag is a better choice for these failing tests.
I realize all my tests used tfAllOrNothing
but going forward I think its much easier to understand whats happening if we use tfIndependent
and we can visualize the errors easier. So then both these results should be tecNO_DELEGATE_PERMISSION
and they should be in the ledger.
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.
modified in ac6328386706383283b8154fba54862369793da0
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really nice.
EDIT: reviewed |
@yinyiqian1 is this ready to merge ? |
@Bronek Yes. It is ready. |
The test to make sure
tfInnerBatchTxn
won't block delegated transactions would silently fail inDelegate_test.cpp
.This commit removes these cases from
Delegate_test.cpp
. and adds them toBatch_test.cpp
.This will not silently fail because we will explicitly check batch delegate result.
Moving to
Batch_test.cpp
to avoid refactoring too many helper functions.High Level Overview of Change
Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)