Skip to content

Commit

Permalink
fix prefix test
Browse files Browse the repository at this point in the history
  • Loading branch information
didaunesp committed Aug 9, 2024
1 parent 101c7b0 commit e826e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/node/peerManager/peerdb/datastore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e826e9d

Please sign in to comment.