nit
All checks were successful
Test / Run compliance tests (pull_request) Successful in 4m54s
Test / Run unit and integration tests (pull_request) Successful in 6m56s

This commit is contained in:
Roy Crihfield 2024-06-10 14:15:52 +02:00
parent e5b49dd1a0
commit e4f5b1d109

View File

@ -4,7 +4,6 @@ import (
"fmt"
"math/rand"
"path/filepath"
"sort"
"testing"
"time"
@ -130,8 +129,7 @@ func verify_chainAblock1(t *testing.T, data mocks.IndexerData) {
stateKey := common.BytesToHash(stateNode.AccountWrapper.LeafKey).String()
indexedStateKeys = append(indexedStateKeys, stateKey)
}
sort.Slice(indexedStateKeys, func(i, j int) bool { return indexedStateKeys[i] < indexedStateKeys[j] })
require.Equal(t, fixture.ChainA_Block1_StateNodeLeafKeys, indexedStateKeys)
require.ElementsMatch(t, fixture.ChainA_Block1_StateNodeLeafKeys, indexedStateKeys)
ipldCids := make(map[string]struct{})
for _, ipld := range data.IPLDs {