From 22e24919e462aafc554c766affcb2622e52edfab Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Fri, 9 Jun 2023 09:32:22 -0300 Subject: [PATCH] make linter happy with a false positive Signed-off-by: Ignacio Hagopian --- tree_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tree_test.go b/tree_test.go index a6031f29..d52fd359 100644 --- a/tree_test.go +++ b/tree_test.go @@ -1323,7 +1323,9 @@ func TestManipulateChildren(t *testing.T) { func TestLeafNodeInsert(t *testing.T) { valIdx := 42 - ffx31plus42 := append(ffx32KeyTest[:StemSize], byte(valIdx)) + ffx31plus42 := make([]byte, 32) + copy(ffx31plus42, ffx32KeyTest[:StemSize]) + ffx31plus42[StemSize] = byte(valIdx) tree := New() if err := tree.Insert(ffx31plus42, testValue, nil); err != nil {