Reenable GC at the end of test

The test disables GC but never reenables it. Before this patch, running
all tests would have a peak RSS in the main process of >4GB. After this
patch, peak RSS in the main process is <500MB.
This commit is contained in:
Peter Zhu 2021-08-04 15:33:47 -04:00 коммит произвёл Peter Zhu
Родитель 5f2987d6c2
Коммит 1fd0a2e4a6
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -191,6 +191,8 @@ End
assert(false)
rescue my_error
end
ensure
GC.enable
end
def test_each_object