Skip to content

Commit

Permalink
Try to fix flaky test_warmup_frees_pages
Browse files Browse the repository at this point in the history
This test sometimes fails with:

```
  1) Failure:
TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2750]:
<202> expected but was
<203>.
```
  • Loading branch information
peterzhu2118 committed Sep 6, 2023
1 parent a334077 commit 08929b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ruby/test_process.rb
Expand Up @@ -2742,6 +2742,9 @@ def test_warmup_frees_pages
ary.clear
ary = nil
# Disable GC so we can make sure GC only runs in Process.warmup
GC.disable
total_pages_before = GC.stat(:heap_eden_pages) + GC.stat(:heap_allocatable_pages)
Process.warmup
Expand Down

0 comments on commit 08929b3

Please sign in to comment.