Skip to content

Commit 3ae5925

Browse files
ryanofskyfanquake
authored andcommitted
test: Prevent disk space warning during node_init_tests
mzumsande pointed out bitcoin#32345 (comment) that this test was causing a warning: Warning: Disk space for "/tmp/test_common bitcoin/node_init_tests/init_test/bf78678cb7723a3e84b5/blocks" may not accommodate the block files. Approximately 810 GB of data will be stored in this directory. Fix by setting regtest instead of mainnet network before running the test. Github-Pull: bitcoin#33391 Rebased-From: bdf01c6
1 parent 5dbb1ba commit 3ae5925

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/node_init_tests.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212
using node::NodeContext;
1313

14-
BOOST_FIXTURE_TEST_SUITE(node_init_tests, BasicTestingSetup)
14+
//! Like BasicTestingSetup, but using regtest network instead of mainnet.
15+
struct InitTestSetup : BasicTestingSetup {
16+
InitTestSetup() : BasicTestingSetup{ChainType::REGTEST} {}
17+
};
18+
19+
BOOST_FIXTURE_TEST_SUITE(node_init_tests, InitTestSetup)
1520

1621
//! Custom implementation of interfaces::Init for testing.
1722
class TestInit : public interfaces::Init

0 commit comments

Comments
 (0)