v30.3-roots.1 · Commit 38: [PATCH 38/68] test: initialize Roots configuration in Core startup fixture
src/test/node_init_tests.cpp
Before: src/test/node_init_tests.cpp · After: src/test/node_init_tests.cpp
File metadata
index 90eab38f6f419a58b6daba08d21a7ed7f4b49bbd..fa5904c11da340bfe0250ccea7b4fcb27484a633 100644
Download original patch · Release notes
Diff rows 1–12 of 12. 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
|
@@ -39,7 +39,11 @@ BOOST_AUTO_TEST_CASE(init_test)
|
|
|
39
39
|
{
|
|
40
40
|
// Clear state set by BasicTestingSetup that AppInitMain assumes is unset.
|
|
41
41
|
LogInstance().DisconnectTestLogger();
|
|
42
|
-
m_node.args->SetConfigFilePath({});
|
|
42
|
+
// Initialize both read-only and Roots read/write configuration paths in
|
|
43
|
+
// the fixture's isolated datadir, as normal node startup does.
|
|
44
|
+
m_node.args->ForceSetArg("-chain", "regtest");
|
|
45
|
+
std::string error;
|
|
46
|
+
BOOST_REQUIRE_MESSAGE(m_node.args->ReadConfigFiles(error), error);
|
|
43
47
|
|
|
44
48
|
// Prevent the test from trying to listen on ports 8332 and 8333.
|
|
45
49
|
m_node.args->ForceSetArg("-server", "0");
|