Skip to content

Commit

Permalink
itest: verify new UnconfirmedTransfers field in ListAssets RPC response
Browse files Browse the repository at this point in the history
This commit updates an existing test to verify the new
`UnconfirmedTransfers` field in the `ListAssets` RPC endpoint
response.
  • Loading branch information
ffranr committed Jun 24, 2024
1 parent 499b3c6 commit dd99d6f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion itest/multi_send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ func testAnchorMultipleVirtualTransactions(t *harnessTest) {
)
require.NoError(t.t, err)

// We'll attempt to list assets immediately after initiating the
// transfer. The unconfirmed assets should not be listed yet, but the
// unconfirmed transfer count should be 1.
aliceAssets, err := aliceTapd.ListAssets(
ctxt, &taprpc.ListAssetRequest{},
)
require.NoError(t.t, err)
require.Nil(t.t, aliceAssets.Assets)
require.EqualValues(t.t, aliceAssets.UnconfirmedTransfers, 1)

t.Logf("Send response: %v", toJSON(t.t, sendResp))

ConfirmAndAssertOutboundTransferWithOutputs(
Expand All @@ -272,7 +282,7 @@ func testAnchorMultipleVirtualTransactions(t *harnessTest) {
assetXTranche3.AssetGenesis,
)

aliceAssets, err := aliceTapd.ListAssets(
aliceAssets, err = aliceTapd.ListAssets(
ctxt, &taprpc.ListAssetRequest{},
)
require.NoError(t.t, err)
Expand Down

0 comments on commit dd99d6f

Please sign in to comment.