From baad408743cfe9b599c44dc350f9ce1b2492ebaa Mon Sep 17 00:00:00 2001 From: Nicholas Guo Date: Fri, 23 Sep 2022 13:30:22 -0400 Subject: [PATCH] fix test --- ledger/catchpointwriter_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ledger/catchpointwriter_test.go b/ledger/catchpointwriter_test.go index c4fa8cf847..e5765e5062 100644 --- a/ledger/catchpointwriter_test.go +++ b/ledger/catchpointwriter_test.go @@ -426,6 +426,7 @@ 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) @@ -433,7 +434,8 @@ func TestCatchpointReadDatabaseOverflowSingleAccount(t *testing.T) { } for i := uint64(0); i < 20; i++ { ap := ledgertesting.RandomAssetParams() - acct.AssetParams[basics.AssetIndex(i+100)] = ap + acct.AssetParams[basics.AssetIndex(assetIndex)] = ap + assetIndex++ } }