From c4dc81f9c6980964f63b9ad5166cd4cfaa86f3e6 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Sat, 21 Sep 2024 21:49:03 +0200 Subject: [PATCH] test: Remove dead code from interface_zmq --- test/functional/interface_zmq.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index b960f40ccc7..b5a71ba4836 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -489,13 +489,8 @@ def test_mempool_sync(self): mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True) mempool_view = set(mempool_snapshot["txids"]) get_raw_seq = mempool_snapshot["mempool_sequence"] - assert_equal(get_raw_seq, 6) - # Snapshot may be too old compared to zmq message we read off latest - while zmq_mem_seq >= get_raw_seq: - sleep(2) - mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True) - mempool_view = set(mempool_snapshot["txids"]) - get_raw_seq = mempool_snapshot["mempool_sequence"] + assert_equal(get_raw_seq, num_txs + 1) + assert zmq_mem_seq < get_raw_seq # Things continue to happen in the "interim" while waiting for snapshot results # We have node 0 do all these to avoid p2p races with RBF announcements