Skip to content

Commit

Permalink
test: heap: Don't use such large map_sizes
Browse files Browse the repository at this point in the history
We can allocate a lot of memory with a large map_size, which can slow
down testing. Try to allocate less memory.

Signed-off-by: Sean Anderson <[email protected]>
  • Loading branch information
Forty-Bot committed Dec 28, 2022
1 parent e4f2753 commit 1bc409f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/heap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_bad_align(alignment):

@st.composite
def allocs(draw):
size = mmap.ALLOCATIONGRANULARITY << draw(st.integers(0, 8))
size = mmap.ALLOCATIONGRANULARITY << draw(st.integers(0, 4))
heap = Heap(map_size=size)
sizes = st.integers(1, 2 * size)
aligns = st.integers(0, 12).map(lambda n: 1 << n)
Expand Down

0 comments on commit 1bc409f

Please sign in to comment.