diff options
author | gzhao408 <gzhao408@berkeley.edu> | 2020-09-03 18:05:26 -0700 |
---|---|---|
committer | gzhao408 <gzhao408@berkeley.edu> | 2020-09-10 07:37:14 -0700 |
commit | 784f757994c1306bb6584b14c0c78617d6248432 (patch) | |
tree | a884db60889e652e08236f668585d24aca65a3a6 /test/functional/p2p_filter.py | |
parent | bd60a9a8edd4a3fe2f4f605b77cdae34969eaaf2 (diff) | |
download | bitcoin-784f757994c1306bb6584b14c0c78617d6248432.tar.xz |
[refactor] clarify tests by referencing p2p objects directly
Use object returned from add_p2p_connection to refer to
p2ps. Add a test class attribute if it needs to be used across
many methods. Don't use the p2p property.
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-x | test/functional/p2p_filter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py index 613d96eaad..642a217047 100755 --- a/test/functional/p2p_filter.py +++ b/test/functional/p2p_filter.py @@ -131,7 +131,7 @@ class FilterTest(BitcoinTestFramework): self.log.debug("Send a mempool msg after connecting and check that the tx is received") self.nodes[0].add_p2p_connection(filter_peer) filter_peer.send_and_ping(filter_peer.watch_filter_init) - self.nodes[0].p2p.send_message(msg_mempool()) + filter_peer.send_message(msg_mempool()) filter_peer.wait_for_tx(txid) def test_frelay_false(self, filter_peer): |