forked from LBRYCommunity/lbry-sdk
use the stream controller tx instead of local history
This commit is contained in:
parent
7f03b13579
commit
8bb6f328dc
1 changed files with 3 additions and 9 deletions
|
@ -90,12 +90,6 @@ class TestUsagePayment(CommandTestCase):
|
||||||
features = await self.ledger.network.get_server_features()
|
features = await self.ledger.network.get_server_features()
|
||||||
self.assertEqual(features["payment_address"], address)
|
self.assertEqual(features["payment_address"], address)
|
||||||
self.assertEqual(features["daily_fee"], "1.0")
|
self.assertEqual(features["daily_fee"], "1.0")
|
||||||
await asyncio.wait([
|
tx = await asyncio.wait_for(wallet_pay_service.on_payment.first, timeout=3)
|
||||||
wallet_pay_service.on_payment.first,
|
self.assertEqual(tx.outputs[0].amount, 100000000)
|
||||||
self.on_address_update(address)
|
self.assertEqual(tx.outputs[0].get_address(self.ledger), address)
|
||||||
], timeout=3)
|
|
||||||
_, history = await self.ledger.get_local_status_and_history(address)
|
|
||||||
txid, nout = history[0]
|
|
||||||
tx_details = await self.daemon.jsonrpc_transaction_show(txid)
|
|
||||||
self.assertEqual(tx_details.outputs[nout].amount, 100000000)
|
|
||||||
self.assertEqual(tx_details.outputs[nout].get_address(self.ledger), address)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue