diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-02-26 09:52:50 +0100 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-04-18 12:07:00 +0200 |
commit | bb8d1c6e029a2fd01387599d2ff3bfc879a8ada5 (patch) | |
tree | 1b34f491137be9ef3f9bd5b78f471db0d975e8cc /src/test | |
parent | b4190eff72c00e384ad238f9c2f10c8b91be969b (diff) | |
download | bitcoin-bb8d1c6e029a2fd01387599d2ff3bfc879a8ada5.tar.xz |
Change ClearDataDirPathCache() to ArgsManager.ClearPathCache().
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util/setup_common.cpp | 2 | ||||
-rw-r--r-- | src/test/util_tests.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 831083ccb8..ffc5115145 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -90,7 +90,7 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName, const std::ve fs::create_directories(m_path_root); m_args.ForceSetArg("-datadir", m_path_root.string()); gArgs.ForceSetArg("-datadir", m_path_root.string()); - ClearDatadirCache(); + gArgs.ClearPathCache(); { SetupServerArgs(m_node); std::string error; diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 92e17d7117..04b908829b 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -56,19 +56,19 @@ BOOST_AUTO_TEST_CASE(util_datadir) const fs::path dd_norm = args.GetDataDirPath(); args.ForceSetArg("-datadir", dd_norm.string() + "/"); - ClearDatadirCache(); + args.ClearPathCache(); BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath()); args.ForceSetArg("-datadir", dd_norm.string() + "/."); - ClearDatadirCache(); + args.ClearPathCache(); BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath()); args.ForceSetArg("-datadir", dd_norm.string() + "/./"); - ClearDatadirCache(); + args.ClearPathCache(); BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath()); args.ForceSetArg("-datadir", dd_norm.string() + "/.//"); - ClearDatadirCache(); + args.ClearPathCache(); BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath()); } |