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:
parent
5f2987d6c2
commit
1fd0a2e4a6
Notes:
git
2021-08-05 05:11:40 +09:00
@ -191,6 +191,8 @@ End
|
||||
assert(false)
|
||||
rescue my_error
|
||||
end
|
||||
ensure
|
||||
GC.enable
|
||||
end
|
||||
|
||||
def test_each_object
|
||||
|
Loading…
x
Reference in New Issue
Block a user