diff options
| author | MarcoFalke <[email protected]> | 2019-06-26 16:42:33 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-27 16:47:23 -0400 |
| commit | faa1e0fb1712b1f94334e42794163f79988270fd (patch) | |
| tree | 8e7200434658e06054579bffceacb3fda096d1f4 /src/qt/test/apptests.cpp | |
| parent | Merge #16278: tests: Remove unused includes (diff) | |
| download | discoin-faa1e0fb1712b1f94334e42794163f79988270fd.tar.xz discoin-faa1e0fb1712b1f94334e42794163f79988270fd.zip | |
qt: test: Create at most one testing setup
Diffstat (limited to 'src/qt/test/apptests.cpp')
| -rw-r--r-- | src/qt/test/apptests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/test/apptests.cpp b/src/qt/test/apptests.cpp index a900ec019..49e9e072a 100644 --- a/src/qt/test/apptests.cpp +++ b/src/qt/test/apptests.cpp @@ -11,6 +11,8 @@ #include <qt/networkstyle.h> #include <qt/rpcconsole.h> #include <shutdown.h> +#include <test/setup_common.h> +#include <univalue.h> #include <validation.h> #if defined(HAVE_CONFIG_H) @@ -26,8 +28,6 @@ #include <QtGlobal> #include <QtTest/QtTestWidgets> #include <QtTest/QtTestGui> -#include <string> -#include <univalue.h> namespace { //! Call getblockchaininfo RPC and check first field of JSON output. @@ -62,6 +62,7 @@ void AppTests::appTests() } #endif + BasicTestingSetup test{CBaseChainParams::REGTEST}; // Create a temp data directory to backup the gui settings to ECC_Stop(); // Already started by the common test setup, so stop it to avoid interference LogInstance().DisconnectTestLogger(); |