Skip to content

Commit

Permalink
tests: fix TestCatchpointReadDatabaseOverflowSingleAccount (#4579)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasguoalgorand authored Sep 23, 2022
1 parent 54393ba commit 1d95756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ledger/catchpointwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,16 @@ func TestCatchpointReadDatabaseOverflowSingleAccount(t *testing.T) {

accts := ledgertesting.RandomAccounts(1, false)
// force acct to have overflowing number of resources
assetIndex := 1000
for addr, acct := range accts {
if acct.AssetParams == nil {
acct.AssetParams = make(map[basics.AssetIndex]basics.AssetParams, 0)
accts[addr] = acct
}
for i := uint64(0); i < 20; i++ {
ap := ledgertesting.RandomAssetParams()
acct.AssetParams[basics.AssetIndex(i+100)] = ap
acct.AssetParams[basics.AssetIndex(assetIndex)] = ap
assetIndex++
}
}

Expand Down

0 comments on commit 1d95756

Please sign in to comment.