mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-29 15:29:14 +01:00
test: fix interface_usdt_mempool by mining a block after each test
Co-authored-by: josibake <josibake@protonmail.com>
This commit is contained in:
@@ -173,6 +173,7 @@ class MempoolTracepointTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Ensuring mempool:added event was handled successfully...")
|
self.log.info("Ensuring mempool:added event was handled successfully...")
|
||||||
assert_equal(EXPECTED_ADDED_EVENTS, handled_added_events)
|
assert_equal(EXPECTED_ADDED_EVENTS, handled_added_events)
|
||||||
|
self.generate(self.wallet, 1)
|
||||||
|
|
||||||
def removed_test(self):
|
def removed_test(self):
|
||||||
"""Expire a transaction from the mempool and make sure the tracepoint returns
|
"""Expire a transaction from the mempool and make sure the tracepoint returns
|
||||||
@@ -223,6 +224,7 @@ class MempoolTracepointTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Ensuring mempool:removed event was handled successfully...")
|
self.log.info("Ensuring mempool:removed event was handled successfully...")
|
||||||
assert_equal(EXPECTED_REMOVED_EVENTS, handled_removed_events)
|
assert_equal(EXPECTED_REMOVED_EVENTS, handled_removed_events)
|
||||||
|
self.generate(self.wallet, 1)
|
||||||
|
|
||||||
def replaced_test(self):
|
def replaced_test(self):
|
||||||
"""Replace one and two transactions in the mempool and make sure the tracepoint
|
"""Replace one and two transactions in the mempool and make sure the tracepoint
|
||||||
@@ -280,6 +282,7 @@ class MempoolTracepointTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Ensuring mempool:replaced event was handled successfully...")
|
self.log.info("Ensuring mempool:replaced event was handled successfully...")
|
||||||
assert_equal(EXPECTED_REPLACED_EVENTS, handled_replaced_events)
|
assert_equal(EXPECTED_REPLACED_EVENTS, handled_replaced_events)
|
||||||
|
self.generate(self.wallet, 1)
|
||||||
|
|
||||||
def rejected_test(self):
|
def rejected_test(self):
|
||||||
"""Create an invalid transaction and make sure the tracepoint returns
|
"""Create an invalid transaction and make sure the tracepoint returns
|
||||||
@@ -321,6 +324,7 @@ class MempoolTracepointTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Ensuring mempool:rejected event was handled successfully...")
|
self.log.info("Ensuring mempool:rejected event was handled successfully...")
|
||||||
assert_equal(EXPECTED_REJECTED_EVENTS, handled_rejected_events)
|
assert_equal(EXPECTED_REJECTED_EVENTS, handled_rejected_events)
|
||||||
|
self.generate(self.wallet, 1)
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
"""Tests the mempool:added, mempool:removed, mempool:replaced,
|
"""Tests the mempool:added, mempool:removed, mempool:replaced,
|
||||||
|
|||||||
Reference in New Issue
Block a user