Use math.MaxUint64 (#9857)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao
2021-11-04 11:48:09 -07:00
committed by GitHub
parent 7974fe01cd
commit 341a2f1ea3
4 changed files with 8 additions and 7 deletions

View File

@@ -416,8 +416,8 @@ func TestPrevSlot(t *testing.T) {
},
{
name: "max",
slot: 1<<64 - 1,
want: 1<<64 - 1 - 1,
slot: math.MaxUint64,
want: math.MaxUint64 - 1,
},
}
for _, tt := range tests {