From e826e9d4318b6d889a019b87f5aed5850c17ebab Mon Sep 17 00:00:00 2001 From: Guilherme Ferreira Date: Thu, 8 Aug 2024 16:42:48 -0300 Subject: [PATCH] fix prefix test --- p2p/node/peerManager/peerdb/datastore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/node/peerManager/peerdb/datastore_test.go b/p2p/node/peerManager/peerdb/datastore_test.go index 95d19435d8..94c7b835d7 100644 --- a/p2p/node/peerManager/peerdb/datastore_test.go +++ b/p2p/node/peerManager/peerdb/datastore_test.go @@ -102,7 +102,7 @@ func TestQuery(t *testing.T) { // Test query with prefix t.Run("Test query with prefix", func(t *testing.T) { - q := query.Query{Prefix: peers[0].AddrInfo.ID.String()[0:10]} + q := query.Query{Prefix: peers[0].AddrInfo.ID.String()[0:40]} results, err := ps.Query(context.Background(), q) require.NoError(t, err) resultsPrefix, err := results.Rest()