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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/node_init_tests.cpp
CHANGED
|
@@ -40,7 +40,10 @@ BOOST_AUTO_TEST_CASE(init_test)
|
|
| 40 |
{
|
| 41 |
// Clear state set by BasicTestingSetup that AppInitMain assumes is unset.
|
| 42 |
LogInstance().DisconnectTestLogger();
|
| 43 |
-
m_node.args->SetConfigFilePath({});
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
// Prevent the test from trying to listen on ports 8332 and 8333.
|
| 46 |
m_node.args->ForceSetArg("-server", "0");
|
|
|
|
| 40 |
{
|
| 41 |
// Clear state set by BasicTestingSetup that AppInitMain assumes is unset.
|
| 42 |
LogInstance().DisconnectTestLogger();
|
| 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));
|
| 47 |
|
| 48 |
// Prevent the test from trying to listen on ports 8332 and 8333.
|
| 49 |
m_node.args->ForceSetArg("-server", "0");
|