test: remove redundant sync_with_ping after add_p2p_connection

This commit is contained in:
Jon Atack 2020-04-01 15:46:54 +02:00
parent b97e3a7349
commit 4670006762
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D

View file

@ -243,10 +243,6 @@ class SendHeadersTest(BitcoinTestFramework):
# will occur outside of direct fetching
test_node = self.nodes[0].add_p2p_connection(BaseNode(), services=NODE_WITNESS)
# Ensure verack's have been processed by our peer
inv_node.sync_with_ping()
test_node.sync_with_ping()
self.test_null_locators(test_node, inv_node)
self.test_nonnull_locators(test_node, inv_node)