test: Remove redundant sync_with_ping after add_p2p_connection

Also replace the two-line (send_message + sync_with_ping) with the one-line send_and_ping
This commit is contained in:
MarcoFalke committed 2020-03-31 17:03:24 -04:00
1 parent fa90647045
commit faf1d04731
2 files changed
+3 -7

No files matched your search

-1
View File
@@ -140,7 +140,6 @@ class InvalidMessagesTest(BitcoinTestFramework):
# Node is still up.
conn = node.add_p2p_connection(P2PDataStore())
conn.sync_with_ping()
def test_magic_bytes(self):
conn = self.nodes[0].add_p2p_connection(P2PDataStore())