test: Fix intermittent issue in interface_rest.py

This commit is contained in:
MarcoFalke 2024-02-22 19:37:23 +01:00
parent 88b1229c13
commit faeed91c0b
No known key found for this signature in database

View file

@ -337,6 +337,9 @@ class RESTTest (BitcoinTestFramework):
assert_greater_than(json_obj['bytes'], 300)
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)
# Check that there are our submitted transactions in the TX memory pool