From 3759c5ffe3a8926d09c554af44acddae9919832d Mon Sep 17 00:00:00 2001 From: jmank88 Date: Sun, 27 Oct 2019 08:50:19 -0500 Subject: [PATCH] fix test int overflow --- key_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/key_test.go b/key_test.go index 8fbcf78..4a2346a 100644 --- a/key_test.go +++ b/key_test.go @@ -30,7 +30,7 @@ func TestKeyLen(t *testing.T) { func TestKey(t *testing.T) { for _, test := range []struct { - max int + max int64 xs []uint64 bs [][]byte }{ @@ -101,7 +101,7 @@ func TestKey(t *testing.T) { }, }, } { - t.Run(strconv.Itoa(test.max), func(t *testing.T) { + t.Run(strconv.FormatInt(test.max, 10), func(t *testing.T) { k := make(Key, KeyLen(uint64(test.max))) for i, x := range test.xs { k.Put(x)