From e59148823cea99f40f26d8c7c0489861142200c3 Mon Sep 17 00:00:00 2001 From: Diego del Corral Date: Fri, 11 Feb 2022 10:49:08 +0100 Subject: [PATCH] Add sync_blocks to fix failing deposittovault --- test/functional/feature_loan_vault.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/feature_loan_vault.py b/test/functional/feature_loan_vault.py index d23f9954cb..442d7171a1 100755 --- a/test/functional/feature_loan_vault.py +++ b/test/functional/feature_loan_vault.py @@ -547,6 +547,8 @@ def test_50pctDFI_fresh_vault_takeloan_withdraw(self): # Deposit collaterals. 50% of BTC address = self.nodes[0].getnewaddress() + self.nodes[0].generate(1) + self.sync_blocks() self.owner_addresses.append(address) self.nodes[1].sendtokenstoaddress({}, { address: '1.50@BTC'}) self.nodes[1].generate(1) @@ -554,6 +556,7 @@ def test_50pctDFI_fresh_vault_takeloan_withdraw(self): vault_id = self.nodes[0].createvault(address, 'LOAN000A') self.vaults.append(vault_id) self.nodes[0].generate(1) + self.sync_blocks() self.nodes[0].deposittovault(vault_id, address, '1.25@BTC') # 1.25@BTC as collateral factor 0.8 self.nodes[0].deposittovault(vault_id, self.accountDFI, '1@DFI') self.nodes[0].generate(1)