From e4f5b1d109bd18814b714ec7349b739f744e10c7 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Mon, 10 Jun 2024 14:15:52 +0200 Subject: [PATCH] nit --- pkg/snapshot/service_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/snapshot/service_test.go b/pkg/snapshot/service_test.go index 1ab12d8..64b34db 100644 --- a/pkg/snapshot/service_test.go +++ b/pkg/snapshot/service_test.go @@ -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 {