aboutsummaryrefslogtreecommitdiff
path: root/src/test/setup_common.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-06-19 17:52:35 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-06-20 09:31:02 -0400
commitfad3d2a624377de4b0311e6ddd446c36dafd1ddc (patch)
tree6663ba6afdd3b667880fdc5aee0b410c20f85d89 /src/test/setup_common.h
parentb1344eac5fcccd1847438ca203ce625f30d1151d (diff)
downloadbitcoin-fad3d2a624377de4b0311e6ddd446c36dafd1ddc.tar.xz
test: Create data dir in BasicTestingSetup
Diffstat (limited to 'src/test/setup_common.h')
-rw-r--r--src/test/setup_common.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/setup_common.h b/src/test/setup_common.h
index 893eca216d..b1bb5e6b25 100644
--- a/src/test/setup_common.h
+++ b/src/test/setup_common.h
@@ -54,22 +54,19 @@ static inline bool InsecureRandBool() { return g_insecure_rand_ctx.randbool(); }
static constexpr CAmount CENT{1000000};
/** Basic testing setup.
- * This just configures logging and chain parameters.
+ * This just configures logging, data dir and chain parameters.
*/
struct BasicTestingSetup {
ECCVerifyHandle globalVerifyHandle;
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.
- * Included are data directory, coins database, script check threads setup.
+ * Included are coins database, script check threads setup.
*/
struct TestingSetup : public BasicTestingSetup {
boost::thread_group threadGroup;