From 3dfecbe2e06fa64ff94db2568c45b06da43c057e Mon Sep 17 00:00:00 2001 From: ffranr Date: Mon, 12 Aug 2024 14:51:20 +0100 Subject: [PATCH] tapdb: align unit tests with in-code comments This commit updates the unit tests to accurately reflect and comply with the intended behavior outlined in the in-code comments. --- tapdb/assets_store_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tapdb/assets_store_test.go b/tapdb/assets_store_test.go index 772c65a9d..d997b6a1a 100644 --- a/tapdb/assets_store_test.go +++ b/tapdb/assets_store_test.go @@ -2090,7 +2090,9 @@ func TestTransferOutputProofDeliveryStatus(t *testing.T) { // At this point, we should be able to query for the log parcel, by // looking for all unconfirmed transfers. - assetTransfers, err := db.QueryAssetTransfers(ctx, TransferQuery{}) + assetTransfers, err := db.QueryAssetTransfers(ctx, TransferQuery{ + PendingTransfersOnly: sqlBool(true), + }) require.NoError(t, err) require.Len(t, assetTransfers, 1)