mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 07:48:01 +00:00
test: enable unit tests to work with variable reference fee (#5145)
Fix remaining unit tests to be able to process reference fee values other than 10.
This commit is contained in:
@@ -37,7 +37,10 @@ class TransactionEntry_test : public beast::unit_test::suite
|
||||
{
|
||||
testcase("Invalid request params");
|
||||
using namespace test::jtx;
|
||||
Env env{*this};
|
||||
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.reference_fee = 10;
|
||||
return cfg;
|
||||
})};
|
||||
|
||||
{
|
||||
// no params
|
||||
@@ -152,7 +155,10 @@ class TransactionEntry_test : public beast::unit_test::suite
|
||||
{
|
||||
testcase("Basic request API version " + std::to_string(apiVersion));
|
||||
using namespace test::jtx;
|
||||
Env env{*this};
|
||||
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.reference_fee = 10;
|
||||
return cfg;
|
||||
})};
|
||||
|
||||
auto check_tx = [this, &env, apiVersion](
|
||||
int index,
|
||||
|
||||
Reference in New Issue
Block a user