From 8834794fae4bb96a05bdde6bd4854e24ed49b4d1 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Tue, 19 Mar 2024 10:41:57 -0400 Subject: [PATCH] chore: fix test type assertion --- lib/runtime/allocator/freeing_bump_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/allocator/freeing_bump_test.go b/lib/runtime/allocator/freeing_bump_test.go index b31d341571..9f41129f5c 100644 --- a/lib/runtime/allocator/freeing_bump_test.go +++ b/lib/runtime/allocator/freeing_bump_test.go @@ -248,7 +248,7 @@ func TestShouldReturnErrorWhenBumperGreaterThanHeapSize(t *testing.T) { // further allocation which would increment the bumper must fail. // we try to allocate 8 bytes here, which will increment the // bumper since no 8 byte item has been freed before. - require.Equal(t, heap.bumper, mem.Size()) + require.Equal(t, uint64(heap.bumper), mem.Size()) ptr, err := heap.Allocate(mem, 8) require.Zero(t, ptr)