Skip to content

Commit e21276a

Browse files
committed
qt test: Don't bind to regtest port
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.
1 parent 43f3ada commit e21276a

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)