Skip to content

Commit

Permalink
chore: fix test type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Mar 19, 2024
1 parent cfffabf commit 8834794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/allocator/freeing_bump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8834794

Please sign in to comment.