-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
test: enable unit tests to work with variable reference fee #5145
base: develop
Are you sure you want to change the base?
test: enable unit tests to work with variable reference fee #5145
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5145 +/- ##
=========================================
- Coverage 76.2% 76.2% -0.0%
=========================================
Files 760 760
Lines 61568 61568
Branches 8126 8126
=========================================
- Hits 46909 46900 -9
- Misses 14659 14668 +9 |
This reverts commit db568d9.
Can you pls add a command line option to set this value ? It will probably go somewhere in app/main/Main.cpp (look for sections guarded by |
This is actually quite tricky to do in runtime. Almost all tests allocate the Feasible option is to make it compile time setting in CMake |
Yeah in that case just pls add an option to CMake (files |
I've added a draft PR with this workflow added: #5159 |
High Level Overview of Change
This PR is a continuation of work done in: #5118
Fix remaining unit tests to be able to process reference fee value other than 10.
Context of Change
In preparation for potential reference fee change we would like to verify that fee change works as expected. The first step is to fix all unit tests to be able to work with different reference fee values.
Type of Change
[x ] Tests (you added tests for code that already exists, or your new feature included in this PR)
API Impact
None
Test Plan
Tested following reference fee values: 10, 20, 50, 100, 200, 500, 1000 by changing https://github.com/vvysokikh1/rippled/blob/2f432e812cb773048530ebfaf2e0e6def51e3cc2/src/test/jtx/impl/envconfig.cpp#L47