Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 7: [PATCH 07/17] feat(rpc): preserve Roots operator interfaces on v31

src/test/node_init_tests.cpp

Before: src/test/node_init_tests.cpp · After: src/test/node_init_tests.cpp

File metadata
index 44635dd4aaccb73eac48f40426a172c76c3b026e..39c686f9bdc76f61072e662ad10216d6c16e06ed 100644

Download original patch · Release notes

Diff rows 1–11 of 11. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/test/node_init_tests.cpp CHANGED
@@ -40,7 +40,10 @@ BOOST_AUTO_TEST_CASE(init_test)
40
40
  {
41
41
  // Clear state set by BasicTestingSetup that AppInitMain assumes is unset.
42
42
  LogInstance().DisconnectTestLogger();
43
- m_node.args->SetConfigFilePath({});
43
+ // Initialize both configuration paths as production startup does. The
44
+ // disposable fixture datadir has no configuration files to load.
45
+ std::string error;
46
+ BOOST_REQUIRE(m_node.args->ReadConfigFiles(error));
44
47
 
45
48
  // Prevent the test from trying to listen on ports 8332 and 8333.
46
49
  m_node.args->ForceSetArg("-server", "0");