diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2019-04-29 15:29:00 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-05-26 11:05:10 -0400 |
commit | a7ef6d5975a5f40b90b2709b32a00647bd2bd5a3 (patch) | |
tree | 3cc89ef7c769886d9a61dc30c7dcbc34d405dfad /src/qt/test | |
parent | 284f339de68905131331f7fdb4c0b945c9a1b8cd (diff) | |
download | bitcoin-a7ef6d5975a5f40b90b2709b32a00647bd2bd5a3.tar.xz |
Migrate -par setting from QSettings to settings.json
Diffstat (limited to 'src/qt/test')
-rw-r--r-- | src/qt/test/optiontests.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/test/optiontests.cpp b/src/qt/test/optiontests.cpp index fb8b78f66e..fa3fe031ec 100644 --- a/src/qt/test/optiontests.cpp +++ b/src/qt/test/optiontests.cpp @@ -33,6 +33,7 @@ void OptionTests::migrateSettings() // settings.json QSettings settings; settings.setValue("nDatabaseCache", 600); + settings.setValue("nThreadsScriptVerif", 12); settings.sync(); @@ -40,10 +41,12 @@ void OptionTests::migrateSettings() bilingual_str error; QVERIFY(options.Init(error)); QVERIFY(!settings.contains("nDatabaseCache")); + QVERIFY(!settings.contains("nThreadsScriptVerif")); std::ifstream file(gArgs.GetDataDirNet() / "settings.json"); QCOMPARE(std::string(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>()).c_str(), "{\n" - " \"dbcache\": \"600\"\n" + " \"dbcache\": \"600\",\n" + " \"par\": \"12\"\n" "}\n"); } |