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

@@ -747,7 +747,10 @@ class Transaction_test : public beast::unit_test::suite
using namespace test::jtx;
using std::to_string;
Env env{*this};
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
cfg->FEES.reference_fee = 10;
return cfg;
})};
Account const alice{"alice"};
Account const alie{"alie"};
Account const gw{"gw"};
@@ -829,7 +832,10 @@ class Transaction_test : public beast::unit_test::suite
using namespace test::jtx;
using std::to_string;
Env env{*this};
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
cfg->FEES.reference_fee = 10;
return cfg;
})};
Account const alice{"alice"};
Account const gw{"gw"};
auto const USD{gw["USD"]};