@@ -1261,7 +1261,7 @@ func TestAssetExportLog(t *testing.T) {
1261
1261
// looking for all unconfirmed transfers.
1262
1262
assetTransfers , err := db .QueryAssetTransfers (ctx , TransferQuery {})
1263
1263
require .NoError (t , err )
1264
- require .Equal (t , 1 , len ( assetTransfers ) )
1264
+ require .Len (t , assetTransfers , 1 )
1265
1265
1266
1266
// We should also be able to find it based on its outpoint.
1267
1267
firstOutput := spendDelta .Outputs [0 ]
@@ -1270,7 +1270,7 @@ func TestAssetExportLog(t *testing.T) {
1270
1270
AnchorTxHash : firstOutputAnchor .OutPoint .Hash [:],
1271
1271
})
1272
1272
require .NoError (t , err )
1273
- require .Equal (t , 1 , len ( assetTransfers ) )
1273
+ require .Len (t , assetTransfers , 1 )
1274
1274
1275
1275
// Check that the new UTXO is found among our managed UTXOs.
1276
1276
utxos , err = assetsStore .FetchManagedUTXOs (ctx )
@@ -1302,13 +1302,13 @@ func TestAssetExportLog(t *testing.T) {
1302
1302
UnconfOnly : true ,
1303
1303
})
1304
1304
require .NoError (t , err )
1305
- require .Equal (t , 1 , len ( assetTransfers ) )
1305
+ require .Len (t , assetTransfers , 1 )
1306
1306
1307
1307
// This should also show up in the set of pending parcels. It should
1308
1308
// also match exactly the inbound parcel we used to make the delta.
1309
1309
parcels , err := assetsStore .PendingParcels (ctx )
1310
1310
require .NoError (t , err )
1311
- require .Equal (t , 1 , len ( parcels ) )
1311
+ require .Len (t , parcels , 1 )
1312
1312
require .Equal (t , spendDelta , parcels [0 ])
1313
1313
1314
1314
// We should also be able to query for the parcel when filtering on its
@@ -1428,7 +1428,7 @@ func TestAssetExportLog(t *testing.T) {
1428
1428
// At this point, there should be no more pending parcels.
1429
1429
parcels , err = assetsStore .PendingParcels (ctx )
1430
1430
require .NoError (t , err )
1431
- require .Equal (t , 0 , len ( parcels ) )
1431
+ require .Len (t , parcels , 0 )
1432
1432
}
1433
1433
1434
1434
// TestAssetGroupWitnessUpsert tests that if you try to insert another asset
0 commit comments