mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
tests: add a BasicTestingSetup and apply to all tests
Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
This commit is contained in:
@@ -26,11 +26,17 @@ CWallet* pwalletMain;
|
||||
extern bool fPrintToConsole;
|
||||
extern void noui_connect();
|
||||
|
||||
TestingSetup::TestingSetup()
|
||||
BasicTestingSetup::BasicTestingSetup()
|
||||
{
|
||||
fPrintToDebugLog = false; // don't want to write to debug.log file
|
||||
SelectParams(CBaseChainParams::MAIN);
|
||||
noui_connect();
|
||||
}
|
||||
BasicTestingSetup::~BasicTestingSetup()
|
||||
{
|
||||
}
|
||||
|
||||
TestingSetup::TestingSetup()
|
||||
{
|
||||
#ifdef ENABLE_WALLET
|
||||
bitdb.MakeMock();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user