Skip to content

Commit 2067f9e

Browse files
author
MarcoFalke
committed
Merge bitcoin-core#233: qt test: Don't bind to regtest port
e21276a qt test: Don't bind to regtest port (Andrew Chow) Pull request description: The qt tests don't need to bind to the regtest port. By not binding, it will no longer conflict with existing regtest instances and the tests will run as normal. Fixes bitcoin-core#10 ACKs for top commit: MarcoFalke: cr ACK e21276a jarolrod: re-ACK e21276a, tested on macOS 11.2 Tree-SHA512: 5a269ee043f9aff7900e092c166de71912a2bf86ebe2982b3fb0e26bdebfb91869ee5d0f62082fd608c1288bfb7981f6c8647e504b11176711d7fec993a09164
2 parents a22653a + e21276a commit 2067f9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/qt/test/test_main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ int main(int argc, char* argv[])
5454

5555
NodeContext node_context;
5656
std::unique_ptr<interfaces::Node> node = interfaces::MakeNode(&node_context);
57+
gArgs.ForceSetArg("-listen", "0");
58+
gArgs.ForceSetArg("-listenonion", "0");
59+
gArgs.ForceSetArg("-discover", "0");
60+
gArgs.ForceSetArg("-dnsseed", "0");
61+
gArgs.ForceSetArg("-fixedseeds", "0");
62+
gArgs.ForceSetArg("-upnp", "0");
63+
gArgs.ForceSetArg("-natpmp", "0");
5764

5865
bool fInvalid = false;
5966

0 commit comments

Comments
 (0)