forked from LBRYCommunity/lbry-sdk
use assertBalance in reconnect tests
This commit is contained in:
parent
ee28bbc19b
commit
1732167af1
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ import logging
|
|||
from asyncio import CancelledError
|
||||
|
||||
from torba.testcase import IntegrationTestCase
|
||||
from torba.client.constants import COIN
|
||||
|
||||
|
||||
class ReconnectTests(IntegrationTestCase):
|
||||
|
@ -17,7 +16,7 @@ class ReconnectTests(IntegrationTestCase):
|
|||
await self.blockchain.generate(1)
|
||||
await self.on_transaction_id(sendtxid) # confirmed
|
||||
|
||||
self.assertEqual(round(await self.get_balance(self.account)/COIN, 4), 1.1337)
|
||||
await self.assertBalance(self.account, '1.1337')
|
||||
# is it real? are we rich!? let me see this tx...
|
||||
d = self.ledger.network.get_transaction(sendtxid)
|
||||
# what's that smoke on my ethernet cable? oh no!
|
||||
|
|
Loading…
Add table
Reference in a new issue