From 22bf81baa04b0d46a1db0ca8e18fa8b13df2e53f Mon Sep 17 00:00:00 2001 From: Harshil Goel Date: Wed, 16 Oct 2024 20:57:47 +0530 Subject: [PATCH] fixing more lint issues --- posting/list_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/posting/list_test.go b/posting/list_test.go index f1173f06d16..f312b096228 100644 --- a/posting/list_test.go +++ b/posting/list_test.go @@ -18,6 +18,7 @@ package posting import ( "context" + "fmt" "math" "math/rand" "os" @@ -511,10 +512,10 @@ func TestReadSingleValue(t *testing.T) { key := x.DataKey(x.GalaxyAttr("value"), 1240) ol, err := getNew(key, ps, math.MaxUint64) require.NoError(t, err) - N := int(10000) - for i := uint64(2); i <= uint64(N); i += 2 { + N := uint64(10000) + for i := uint64(2); i <= N; i += 2 { edge := &pb.DirectedEdge{ - Value: []byte("ho hey there" + strconv.Itoa(int(i))), + Value: []byte(fmt.Sprintf("ho hey there%d", i)), } txn := Txn{StartTs: i} addMutationHelper(t, ol, edge, Set, &txn)