Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/stdlib/GC_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def test_stat

def test_stress_and_stress=
old_stress = GC.stress
# Stress mode runs a full GC on every allocation, and the assertions below allocate
# heavily while parsing and type checking. Only the types of the return values matter
# here, so keep GC disabled and let stress mode stay inert.
was_disabled = GC.disable

assert_send_type '() -> (Integer | bool)',
GC, :stress
Expand All @@ -92,6 +96,7 @@ def test_stress_and_stress=
end
ensure
GC.stress = old_stress
GC.enable unless was_disabled
end

def test_total_time
Expand Down
Loading