diff options
| author | Matt Corallo <[email protected]> | 2016-12-24 11:28:44 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-27 13:52:07 +0100 |
| commit | c2f61bebb190258753714b29ab2041e80651cec9 (patch) | |
| tree | 5242c7209483c676c4549c61556fd5f86202bd2c /src/test/test_bitcoin.cpp | |
| parent | Lock mapArgs/mapMultiArgs access in util (diff) | |
| download | discoin-c2f61bebb190258753714b29ab2041e80651cec9.tar.xz discoin-c2f61bebb190258753714b29ab2041e80651cec9.zip | |
Add a ForceSetArg method for testing
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index b62b31710..5c4ef5eb8 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -33,8 +33,6 @@ std::unique_ptr<CConnman> g_connman; FastRandomContext insecure_rand_ctx(true); -extern std::map<std::string, std::string> mapArgs; - extern bool fPrintToConsole; extern void noui_connect(); @@ -66,7 +64,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha ClearDatadirCache(); pathTemp = GetTempPath() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000))); boost::filesystem::create_directories(pathTemp); - mapArgs["-datadir"] = pathTemp.string(); + ForceSetArg("-datadir", pathTemp.string()); mempool.setSanityCheck(1.0); pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); |