test: Fix intermittent issue in interface_rest.py

pull/29467/head
MarcoFalke 9 months ago
parent 88b1229c13
commit faeed91c0b
No known key found for this signature in database

@ -337,6 +337,9 @@ class RESTTest (BitcoinTestFramework):
assert_greater_than(json_obj['bytes'], 300) assert_greater_than(json_obj['bytes'], 300)
mempool_info = self.nodes[0].getmempoolinfo() mempool_info = self.nodes[0].getmempoolinfo()
# pop unstable unbroadcastcount before check
for obj in [json_obj, mempool_info]:
obj.pop("unbroadcastcount")
assert_equal(json_obj, mempool_info) assert_equal(json_obj, mempool_info)
# Check that there are our submitted transactions in the TX memory pool # Check that there are our submitted transactions in the TX memory pool

Loading…
Cancel
Save