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

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