mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
WIP: itest: dave list asset assertion after channel funding
This commit is contained in:
parent
8ecf729de2
commit
144ef90392
1 changed files with 14 additions and 0 deletions
|
|
@ -280,6 +280,16 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
|
|||
require.NoError(t.t, err)
|
||||
t.Logf("Funded channel between Charlie and Dave: %v", fundRespCD)
|
||||
|
||||
// Ensure that Dave's asset balance has been updated.
|
||||
respLiAssets, err := daveTap.ListAssets(ctxb, &taprpc.ListAssetRequest{})
|
||||
require.NoError(t.t, err)
|
||||
expectedDavePreFundBalance := 100_000
|
||||
require.EqualValues(
|
||||
t.t, expectedDavePreFundBalance, respLiAssets.Assets[0].Amount,
|
||||
)
|
||||
|
||||
// Fund channel between Dave and Yara.
|
||||
//daveFundingAmount := uint64(20000)
|
||||
daveFundingAmount := uint64(startAmount)
|
||||
fundRespDY, err := daveTap.FundChannel(
|
||||
ctxb, &tchrpc.FundChannelRequest{
|
||||
|
|
@ -316,6 +326,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
|
|||
// all three of them.
|
||||
mineBlocks(t, net, 6, 3)
|
||||
|
||||
respLiAssets, err = daveTap.ListAssets(ctxb, &taprpc.ListAssetRequest{})
|
||||
require.NoError(t.t, err)
|
||||
require.NotNil(t.t, respLiAssets.Assets)
|
||||
|
||||
// We'll be tracking the expected asset balances throughout the test, so
|
||||
// we can assert it after each action.
|
||||
charlieAssetBalance := charlieFundingAmount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue