Skip to content

Commit 5fd73c8

Browse files
Avoid repeated log messages in tests by connecting to signal handlers (ThreadSafeMessageBox, etc.) only once
1 parent e502c3c commit 5fd73c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/test_bitcoin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
4545
// TODO: fix the code to support SegWit blocks.
4646
gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT));
4747
SelectParams(chainName);
48-
noui_connect();
48+
static bool noui_connected = false;
49+
if (!noui_connected) {
50+
noui_connect();
51+
noui_connected = true;
52+
}
4953
}
5054

5155
BasicTestingSetup::~BasicTestingSetup()

0 commit comments

Comments
 (0)