aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-12-24 11:28:44 -0500
committerMatt Corallo <git@bluematt.me>2016-12-27 13:52:07 +0100
commitc2f61bebb190258753714b29ab2041e80651cec9 (patch)
tree5242c7209483c676c4549c61556fd5f86202bd2c /src/qt/test
parent4e048142a5e45d622355dad92ade192ad4769ca3 (diff)
downloadbitcoin-c2f61bebb190258753714b29ab2041e80651cec9.tar.xz
Add a ForceSetArg method for testing
Diffstat (limited to 'src/qt/test')
-rw-r--r--src/qt/test/rpcnestedtests.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/test/rpcnestedtests.cpp b/src/qt/test/rpcnestedtests.cpp
index 972dad72d0..fb044489d7 100644
--- a/src/qt/test/rpcnestedtests.cpp
+++ b/src/qt/test/rpcnestedtests.cpp
@@ -19,8 +19,6 @@
#include <boost/filesystem.hpp>
-extern std::map<std::string, std::string> mapArgs;
-
static UniValue rpcNestedTest_rpc(const JSONRPCRequest& request)
{
if (request.fHelp) {
@@ -47,7 +45,7 @@ void RPCNestedTests::rpcNestedTests()
std::string path = QDir::tempPath().toStdString() + "/" + strprintf("test_bitcoin_qt_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));
QDir dir(QString::fromStdString(path));
dir.mkpath(".");
- mapArgs["-datadir"] = path;
+ ForceSetArg("-datadir", path);
//mempool.setSanityCheck(1.0);
pblocktree = new CBlockTreeDB(1 << 20, true);
pcoinsdbview = new CCoinsViewDB(1 << 23, true);