Skip to content

Commit 598415b

Browse files
MarcoFalkeachow101
authored andcommitted
test: Work around boost compilation error
Github-Pull: bitcoin#30834 Rebased-From: fa9d7d5
1 parent fa46088 commit 598415b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/validation_chainstatemanager_tests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ BOOST_FIXTURE_TEST_CASE(chainstatemanager_rebalance_caches, TestChain100Setup)
152152
manager.MaybeRebalanceCaches();
153153
}
154154

155-
BOOST_CHECK_CLOSE(c1.m_coinstip_cache_size_bytes, max_cache * 0.05, 1);
156-
BOOST_CHECK_CLOSE(c1.m_coinsdb_cache_size_bytes, max_cache * 0.05, 1);
157-
BOOST_CHECK_CLOSE(c2.m_coinstip_cache_size_bytes, max_cache * 0.95, 1);
158-
BOOST_CHECK_CLOSE(c2.m_coinsdb_cache_size_bytes, max_cache * 0.95, 1);
155+
BOOST_CHECK_CLOSE(double(c1.m_coinstip_cache_size_bytes), max_cache * 0.05, 1);
156+
BOOST_CHECK_CLOSE(double(c1.m_coinsdb_cache_size_bytes), max_cache * 0.05, 1);
157+
BOOST_CHECK_CLOSE(double(c2.m_coinstip_cache_size_bytes), max_cache * 0.95, 1);
158+
BOOST_CHECK_CLOSE(double(c2.m_coinsdb_cache_size_bytes), max_cache * 0.95, 1);
159159
}
160160

161161
struct SnapshotTestSetup : TestChain100Setup {

0 commit comments

Comments
 (0)