Skip to content

Commit 08929b3

Browse files
committed
Try to fix flaky test_warmup_frees_pages
This test sometimes fails with: ``` 1) Failure: TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2750]: <202> expected but was <203>. ```
1 parent a334077 commit 08929b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/ruby/test_process.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,6 +2742,9 @@ def test_warmup_frees_pages
27422742
ary.clear
27432743
ary = nil
27442744
2745+
# Disable GC so we can make sure GC only runs in Process.warmup
2746+
GC.disable
2747+
27452748
total_pages_before = GC.stat(:heap_eden_pages) + GC.stat(:heap_allocatable_pages)
27462749
27472750
Process.warmup

0 commit comments

Comments
 (0)