Skip to content

Commit

Permalink
Add sync_blocks to fix failing deposittovault (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorral authored Feb 11, 2022
1 parent 62a6187 commit c26078f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/feature_loan_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,16 @@ 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)
self.sync_blocks()
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)
Expand Down

0 comments on commit c26078f

Please sign in to comment.