[amount] tests: Fix off-by-one mistake
This commit is contained in:
parent
fa2da2cb60
commit
facf5a4947
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(GetFeeTest)
|
|||
BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32));
|
||||
BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34));
|
||||
// Maximum size in bytes, should not crash
|
||||
CFeeRate(MAX_MONEY, (std::numeric_limits<size_t>::max() >> 1) - 1).GetFeePerK();
|
||||
CFeeRate(MAX_MONEY, std::numeric_limits<size_t>::max() >> 1).GetFeePerK();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
|
Loading…
Reference in a new issue