aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2019-03-29 09:55:21 +0100
committerpracticalswift <[email protected]>2019-03-29 15:14:35 +0100
commit5fd73c8694b51371b9a72e984783db836b6e73c9 (patch)
tree0cc3d4a56cb280252d34f3946190c442d76991a7 /src
parenttests: Reduce noise level in test_bitcoin output (diff)
downloaddiscoin-5fd73c8694b51371b9a72e984783db836b6e73c9.tar.xz
discoin-5fd73c8694b51371b9a72e984783db836b6e73c9.zip
Avoid repeated log messages in tests by connecting to signal handlers (ThreadSafeMessageBox, etc.) only once
Diffstat (limited to 'src')
-rw-r--r--src/test/test_bitcoin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index cdfd4db58..5141c16e7 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -45,7 +45,11 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
// TODO: fix the code to support SegWit blocks.
gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT));
SelectParams(chainName);
- noui_connect();
+ static bool noui_connected = false;
+ if (!noui_connected) {
+ noui_connect();
+ noui_connected = true;
+ }
}
BasicTestingSetup::~BasicTestingSetup()