mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Merge bitcoin/bitcoin#25125: test: Slim down versionbits_tests.cpp
fae3200bbf
test: Slim down versionbits_tests.cpp (MacroFake) Pull request description: Seems confusing to spin up a full chainman that isn't even used. Fix that by only spinning up logging. Also, remove the chainman include and comment. ACKs for top commit: fanquake: ACKfae3200bbf
Tree-SHA512: 35261e9116c0c276f807453db3d635d83916ec2ffd99cf5641f8732736a30a542213096dcec550ef4522d97b3cafe384fdc6068138bc0b577c66fa61256719f8
This commit is contained in:
commit
6b87fa540c
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@
|
|||
#include <chainparams.h>
|
||||
#include <consensus/params.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <validation.h>
|
||||
#include <versionbits.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
@ -183,7 +182,7 @@ public:
|
|||
CBlockIndex* Tip() { return vpblock.empty() ? nullptr : vpblock.back(); }
|
||||
};
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(versionbits_tests, TestingSetup)
|
||||
BOOST_FIXTURE_TEST_SUITE(versionbits_tests, BasicTestingSetup)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(versionbits_test)
|
||||
{
|
||||
|
@ -413,7 +412,7 @@ static void check_computeblockversion(VersionBitsCache& versionbitscache, const
|
|||
|
||||
BOOST_AUTO_TEST_CASE(versionbits_computeblockversion)
|
||||
{
|
||||
VersionBitsCache vbcache; // don't use chainman versionbitscache since we want custom chain params
|
||||
VersionBitsCache vbcache;
|
||||
|
||||
// check that any deployment on any chain can conceivably reach both
|
||||
// ACTIVE and FAILED states in roughly the way we expect
|
||||
|
|
Loading…
Add table
Reference in a new issue