Skip to content

Commit faac1cd

Browse files
author
MarcoFalke
committed
test: Use generate* from TestFramework, not TestNode
1 parent 66d11b1 commit faac1cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/functional/mempool_package_limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_desc_count_limits_2(self):
244244
assert_equal(txres["package-error"], "package-mempool-limits")
245245

246246
# Clear mempool and check that the package passes now
247-
node.generate(1)
247+
self.generate(node, 1)
248248
assert all([res["allowed"] for res in node.testmempoolaccept(rawtxs=package_hex)])
249249

250250
def test_anc_count_limits(self):

test/functional/wallet_transactiontime_rescan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run_test(self):
6363

6464
# generate some btc to create transactions and check blockcount
6565
initial_mine = COINBASE_MATURITY + 1
66-
minernode.generatetoaddress(initial_mine, m1)
66+
self.generatetoaddress(minernode, initial_mine, m1)
6767
assert_equal(minernode.getblockcount(), initial_mine + 200)
6868

6969
# synchronize nodes and time
@@ -76,7 +76,7 @@ def run_test(self):
7676
miner_wallet.sendtoaddress(wo1, 10)
7777

7878
# generate blocks and check blockcount
79-
minernode.generatetoaddress(COINBASE_MATURITY, m1)
79+
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
8080
assert_equal(minernode.getblockcount(), initial_mine + 300)
8181

8282
# synchronize nodes and time
@@ -89,7 +89,7 @@ def run_test(self):
8989
miner_wallet.sendtoaddress(wo2, 5)
9090

9191
# generate blocks and check blockcount
92-
minernode.generatetoaddress(COINBASE_MATURITY, m1)
92+
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
9393
assert_equal(minernode.getblockcount(), initial_mine + 400)
9494

9595
# synchronize nodes and time
@@ -102,7 +102,7 @@ def run_test(self):
102102
miner_wallet.sendtoaddress(wo3, 1)
103103

104104
# generate more blocks and check blockcount
105-
minernode.generatetoaddress(COINBASE_MATURITY, m1)
105+
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
106106
assert_equal(minernode.getblockcount(), initial_mine + 500)
107107

108108
self.log.info('Check user\'s final balance and transaction count')

0 commit comments

Comments
 (0)