mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Shamelessly stolen from the 'fastertest' patch.
This makes the unit tests run about 70% faster and solves a long-standing annoyance that running in standalone mode could contaminate your databases.
This commit is contained in:
@@ -25,7 +25,7 @@ Application* theApp = NULL;
|
|||||||
|
|
||||||
DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount)
|
DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount)
|
||||||
{
|
{
|
||||||
boost::filesystem::path pPath = theConfig.DATA_DIR / strName;
|
boost::filesystem::path pPath = theConfig.RUN_STANDALONE ? "" : theConfig.DATA_DIR / strName;
|
||||||
|
|
||||||
mDatabase = new SqliteDatabase(pPath.string().c_str());
|
mDatabase = new SqliteDatabase(pPath.string().c_str());
|
||||||
mDatabase->connect();
|
mDatabase->connect();
|
||||||
|
|||||||
Reference in New Issue
Block a user