diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-04-24 05:57:34 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-05-07 11:51:30 -0400 |
commit | 05bfee3451d3b3f9aaeda63de75f9d48eecea237 (patch) | |
tree | 1c5449d9000b5628fc1601cc78a5781b726cbbe3 /src/test | |
parent | b2a6b0216192b6e8428f1a80b47f5178fccb961a (diff) | |
download | bitcoin-05bfee3451d3b3f9aaeda63de75f9d48eecea237.tar.xz |
util_SettingsMerge test cleanup
Followup to #15869. Treat "-wallet" as the network-specific argument in test
instead of "-server", to make test output clearer and be more consistent with
bitcoind. Update embedded hash to match changed output from this.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util_tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 0f1834240d..566fbae906 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -580,7 +580,7 @@ BOOST_AUTO_TEST_CASE(util_GetChainName) // Test different ways settings can be merged, and verify results. This test can // be used to confirm that updates to settings code don't change behavior -// unintentially. +// unintentionally. // // The test covers: // @@ -687,7 +687,7 @@ struct SettingsMergeTestingSetup : public BasicTestingSetup { // Regression test covering different ways config settings can be merged. The // test parses and merges settings, representing the results as strings that get // compared against an expected hash. To debug, the result strings can be dumped -// to a file (see below). +// to a file (see comments below). BOOST_FIXTURE_TEST_CASE(util_SettingsMerge, SettingsMergeTestingSetup) { CHash256 out_sha; @@ -706,7 +706,7 @@ BOOST_FIXTURE_TEST_CASE(util_SettingsMerge, SettingsMergeTestingSetup) desc += network; parser.m_network = network; - const std::string& name = net_specific ? "server" : "wallet"; + const std::string& name = net_specific ? "wallet" : "server"; const std::string key = "-" + name; parser.AddArg(key, name, false, OptionsCategory::OPTIONS); if (net_specific) parser.SetNetworkOnlyArg(key); @@ -801,7 +801,7 @@ BOOST_FIXTURE_TEST_CASE(util_SettingsMerge, SettingsMergeTestingSetup) // Results file is formatted like: // // <input> || <IsArgSet/IsArgNegated/GetArg output> | <GetArgs output> | <GetUnsuitable output> - BOOST_CHECK_EQUAL(out_sha_hex, "80964e17fbd3c5569d3c824d032e28e2d319ef57494735b0e76eb7aad9957f2c"); + BOOST_CHECK_EQUAL(out_sha_hex, "f4281d9bff4c0b398ff118386e3a40caa6bac7645e17b296d6a10b95bff632ae"); } BOOST_AUTO_TEST_CASE(util_FormatMoney) |