mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
test: Fix intermittent issue in interface_rest.py
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user