Skip to content

Commit

Permalink
itest: fix final assertion
Browse files Browse the repository at this point in the history
We have 3 transfers at this point, so we want to examine the 2nd (0
indexed) index.
  • Loading branch information
Roasbeef committed Aug 23, 2024
1 parent 4a39c41 commit 0d783fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itest/litd_custom_channels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,18 +1419,18 @@ func testCustomChannelsForceClose(_ context.Context, net *NetworkHarness,

t.Logf("Sending %v asset units to Zane...", daveBalance-1)

// Send the assets to Zane.
// Send the assets to Zane. We expect dave to have 3 transfers: the
// funding txn, their force close sweep, and now this new send.
itest.AssertAddrCreated(t.t, universeTap, cents, zaneAddr)
sendResp, err := daveTap.SendAsset(ctxb, &taprpc.SendAssetRequest{
TapAddrs: []string{zaneAddr.Encoded},
})
require.NoError(t.t, err)
itest.ConfirmAndAssertOutboundTransfer(
t.t, t.lndHarness.Miner.Client, daveTap, sendResp, assetID,
[]uint64{1, assetSendAmount}, 0, 1,
[]uint64{1, assetSendAmount}, 2, 3,
)
itest.AssertNonInteractiveRecvComplete(t.t, universeTap, 1)

}

// testCustomChannelsBreach tests a force close scenario that breaches an old
Expand Down

0 comments on commit 0d783fa

Please sign in to comment.