Skip to content

Commit

Permalink
Make sure we reset the flag after the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Apr 24, 2024
1 parent f7545d4 commit 4b8994d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ruby/test_gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def test_disable_major_gc_start_always_works
GC.start

assert_operator(major_count, :<, GC.stat[:major_gc_count])
ensure
GC.enable_major
GC.start
end

def test_start_full_mark
Expand Down

0 comments on commit 4b8994d

Please sign in to comment.