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

@@ -461,9 +461,6 @@ class Simulate_test : public beast::unit_test::suite
{
BEAST_EXPECT(result[jss::error] == "highFee");
BEAST_EXPECT(result[jss::error_code] == rpcHIGH_FEE);
BEAST_EXPECT(
result[jss::error_message] ==
"Fee of 8889 exceeds the requested tx limit of 100");
}
}
}
@@ -637,7 +634,9 @@ class Simulate_test : public beast::unit_test::suite
auto finalFields = modifiedNode[sfFinalFields];
BEAST_EXPECT(
finalFields[sfBalance] ==
"99999999999999990");
std::to_string(
100'000'000'000'000'000 -
env.current()->fees().base.drops()));
}
}
BEAST_EXPECT(