diff options
author | brunoerg <brunoely.gc@gmail.com> | 2023-03-29 07:17:29 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2023-05-19 09:13:30 -0300 |
commit | a951c34f179dad0c7059b04a7f1e6b0804462168 (patch) | |
tree | 3663403e6a51c5ed9e49714f51f11c8c40bb57ce | |
parent | 1557bf1196bc2bdf00fd32f3b5d525796b4d194c (diff) |
test: fix `interface_usdt_mempool` by mining a block after each test
Co-authored-by: josibake <josibake@protonmail.com>
-rwxr-xr-x | test/functional/interface_usdt_mempool.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/interface_usdt_mempool.py b/test/functional/interface_usdt_mempool.py index ec2f9e4e77..542849d558 100755 --- a/test/functional/interface_usdt_mempool.py +++ b/test/functional/interface_usdt_mempool.py @@ -173,6 +173,7 @@ class MempoolTracepointTest(BitcoinTestFramework): self.log.info("Ensuring mempool:added event was handled successfully...") assert_equal(EXPECTED_ADDED_EVENTS, handled_added_events) + self.generate(self.wallet, 1) def removed_test(self): """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...") assert_equal(EXPECTED_REMOVED_EVENTS, handled_removed_events) + self.generate(self.wallet, 1) def replaced_test(self): """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...") assert_equal(EXPECTED_REPLACED_EVENTS, handled_replaced_events) + self.generate(self.wallet, 1) def rejected_test(self): """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...") assert_equal(EXPECTED_REJECTED_EVENTS, handled_rejected_events) + self.generate(self.wallet, 1) def run_test(self): """Tests the mempool:added, mempool:removed, mempool:replaced, |