mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05: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:
parent
1557bf1196
commit
a951c34f17
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue