mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +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:
@@ -193,7 +193,9 @@ class DeliveredAmount_test : public beast::unit_test::suite
|
||||
|
||||
for (bool const afterSwitchTime : {true, false})
|
||||
{
|
||||
Env env{*this};
|
||||
auto cfg = envconfig();
|
||||
cfg->FEES.reference_fee = 10;
|
||||
Env env(*this, std::move(cfg));
|
||||
env.fund(XRP(10000), alice, bob, carol, gw);
|
||||
env.trust(USD(1000), alice, bob, carol);
|
||||
if (afterSwitchTime)
|
||||
@@ -282,7 +284,9 @@ class DeliveredAmount_test : public beast::unit_test::suite
|
||||
|
||||
for (bool const afterSwitchTime : {true, false})
|
||||
{
|
||||
Env env{*this};
|
||||
auto cfg = envconfig();
|
||||
cfg->FEES.reference_fee = 10;
|
||||
Env env(*this, std::move(cfg));
|
||||
env.fund(XRP(10000), alice, bob, carol, gw);
|
||||
env.trust(USD(1000), alice, bob, carol);
|
||||
if (afterSwitchTime)
|
||||
|
||||
Reference in New Issue
Block a user