Skip to content

Commit fd26d19

Browse files
test(profiling): assert live_heap_enabled is True when gotter is available
Default Cargo features enable live-heap, so when the cdylib is present the smoke test should check the value, not only the type.
1 parent a9ace74 commit fd26d19

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/profiling/test_native_heap_gotter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_native_heap_gotter_smoke() -> None:
3535
assert heap_gotter.install() is True
3636
assert heap_gotter.is_installed() is True
3737
assert heap_gotter.install() is True # idempotent
38-
assert isinstance(heap_gotter.live_heap_enabled(), bool)
38+
# Default gotter builds enable the live-heap Cargo feature (ddheap:free).
39+
assert heap_gotter.live_heap_enabled() is True
3940

4041
blobs: list[tuple[str, int]] = []
4142
for i in range(200):

0 commit comments

Comments
 (0)