test: don't attempt to reconnect already connected nodes

This commit is contained in:
Kittywhiskers Van Gogh 2024-09-22 16:29:46 +00:00
parent 4a0fc8b69e
commit 40f2ab906c
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD
5 changed files with 1 additions and 11 deletions

View File

@ -53,9 +53,6 @@ class DIP3V19Test(DashTestFramework):
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn())
null_hash = format(0, "064x")
for i in range(len(self.nodes)):
self.connect_nodes(i, 0)
self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.wait_for_sporks_same()

View File

@ -26,7 +26,7 @@ class LLMQChainLocksTest(DashTestFramework):
# Connect all nodes to node1 so that we always have the whole network connected
# Otherwise only masternode connections will be established between nodes, which won't propagate TXs/blocks
# Usually node0 is the one that does this, but in this test we isolate it multiple times
for i in range(len(self.nodes)):
for i in range(2, len(self.nodes)):
self.connect_nodes(i, 1)
self.test_coinbase_best_cl(self.nodes[0], expected_cl_in_cb=False)

View File

@ -57,9 +57,6 @@ class LLMQEvoNodesTest(DashTestFramework):
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn())
null_hash = format(0, "064x")
for i in range(len(self.nodes)):
self.connect_nodes(i, 0)
self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.nodes[0].sporkupdate("SPORK_2_INSTANTSEND_ENABLED", 1)
self.wait_for_sporks_same()

View File

@ -64,9 +64,6 @@ class LLMQQuorumRotationTest(DashTestFramework):
# Otherwise only masternode connections will be established between nodes, which won't propagate TXs/blocks
# Usually node0 is the one that does this, but in this test we isolate it multiple times
for i in range(len(self.nodes)):
self.connect_nodes(i, 0)
self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.wait_for_sporks_same()

View File

@ -213,7 +213,6 @@ class NetTest(DashTestFramework):
self.log.info('Test extended connections info')
# Connect nodes both ways.
self.connect_nodes(0, 1)
self.connect_nodes(1, 0)
assert_equal(self.nodes[1].getnetworkinfo()['connections'], 2)