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:
Vlad
2025-03-25 14:31:25 +00:00
committed by GitHub
parent 67028d6ea6
commit 2bc5cb240f
37 changed files with 801 additions and 384 deletions

View File

@@ -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)