File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ void AppTests::appTests()
62
62
}
63
63
#endif
64
64
65
- BasicTestingSetup test{CBaseChainParams::REGTEST}; // Create a temp data directory to backup the gui settings to
66
- ECC_Stop (); // Already started by the common test setup, so stop it to avoid interference
67
- LogInstance ().DisconnectTestLogger ();
65
+ fs::create_directories ([] {
66
+ BasicTestingSetup test{CBaseChainParams::REGTEST}; // Create a temp data directory to backup the gui settings to
67
+ return GetDataDir () / " blocks" ;
68
+ }());
68
69
69
70
m_app.parameterSetup ();
70
71
m_app.createOptionsModel (true /* reset settings */ );
@@ -80,6 +81,7 @@ void AppTests::appTests()
80
81
m_app.exec ();
81
82
82
83
// Reset global state to avoid interfering with later tests.
84
+ LogInstance ().DisconnectTestLogger ();
83
85
AbortShutdown ();
84
86
UnloadBlockIndex ();
85
87
WITH_LOCK (::cs_main, g_chainman.Reset ());
You can’t perform that action at this time.
0 commit comments