diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-02-26 09:56:11 +0100 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-04-18 11:59:28 +0200 |
commit | 83292e2a700afbf39936bd67bb89fab5398d0066 (patch) | |
tree | 135e7629f87517f3e309d5cfd6f6a02ed1ee5c72 /src/test/settings_tests.cpp | |
parent | 55c68e6f011ee604c8a65b9bca668eb4dec452aa (diff) | |
download | bitcoin-83292e2a700afbf39936bd67bb89fab5398d0066.tar.xz |
scripted-diff: Modify unit tests to use the ArgsManager in the BasicTestingSetup class instead of implicitly relying on gArgs.
-BEGIN VERIFY SCRIPT-
git ls-files src/test/dbwrapper_tests.cpp src/test/denialofservice_tests.cpp src/test/flatfile_tests.cpp src/test/fs_tests.cpp src/test/settings_tests.cpp src/test/util_tests.cpp | xargs sed -i 's/GetDataDir()/m_args.GetDataDirPath()/g';
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/settings_tests.cpp')
-rw-r--r-- | src/test/settings_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/settings_tests.cpp b/src/test/settings_tests.cpp index 548fd020a6..f5ae9f86d1 100644 --- a/src/test/settings_tests.cpp +++ b/src/test/settings_tests.cpp @@ -45,7 +45,7 @@ BOOST_FIXTURE_TEST_SUITE(settings_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(ReadWrite) { - fs::path path = GetDataDir() / "settings.json"; + fs::path path = m_args.GetDataDirPath() / "settings.json"; WriteText(path, R"({ "string": "string", |