aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.h
diff options
context:
space:
mode:
authorwinder <wwinder.unh@gmail.com>2018-07-11 23:44:12 -0400
committerwinder <wwinder.unh@gmail.com>2018-07-11 23:44:12 -0400
commit075429a482392050c8e9008d9c990d185054a597 (patch)
treee0bec3da4d66f83fc994a73c2523a55959df6476 /src/test/test_bitcoin.h
parent43ae5ee9e4c274c402ebb9a73795593a6c18c157 (diff)
Use common SetDataDir method to create temp directory in tests.
Diffstat (limited to 'src/test/test_bitcoin.h')
-rw-r--r--src/test/test_bitcoin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h
index d013613de2..88b2d37e87 100644
--- a/src/test/test_bitcoin.h
+++ b/src/test/test_bitcoin.h
@@ -45,6 +45,11 @@ struct BasicTestingSetup {
explicit BasicTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
~BasicTestingSetup();
+
+ fs::path SetDataDir(const std::string& name);
+
+private:
+ const fs::path m_path_root;
};
/** Testing setup that configures a complete environment.
@@ -59,7 +64,6 @@ struct CConnmanTest {
class PeerLogicValidation;
struct TestingSetup: public BasicTestingSetup {
- fs::path pathTemp;
boost::thread_group threadGroup;
CConnman* connman;
CScheduler scheduler;