mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-14 00:30:17 +02:00
qa: Use custom assert_greater_than() over naked assert
Co-authored-by: DrahtBot <39886733+DrahtBot@users.noreply.github.com>
This commit is contained in:
@@ -63,7 +63,7 @@ def cleanup(func):
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
# Do not clear the node's mempool, as each test requires mempool min feerate > min
|
||||
# relay feerate. However, do check that this is the case.
|
||||
assert self.nodes[0].getmempoolinfo()["mempoolminfee"] > self.nodes[0].getnetworkinfo()["relayfee"]
|
||||
assert_greater_than(self.nodes[0].getmempoolinfo()["mempoolminfee"], self.nodes[0].getnetworkinfo()["relayfee"])
|
||||
# Ensure we do not try to spend the same UTXOs in subsequent tests, as they will look like RBF attempts.
|
||||
self.wallet.rescan_utxos(include_mempool=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user