Skip to content

Commit 5edf266

Browse files
committed
Update GC.verify_compaction_references call
1 parent 6fca5a1 commit 5edf266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# This method was added in Ruby 3.0.0. Calling it this way asks the GC to
2525
# move objects around, helping to find object movement bugs.
2626
begin
27-
GC.verify_compaction_references(double_heap: true, toward: :empty)
28-
rescue NotImplementedError
27+
GC.verify_compaction_references(expand_heap: true, toward: :empty)
28+
rescue NotImplementedError, ArgumentError
2929
# some platforms do not support GC compaction
3030
end
3131
end

0 commit comments

Comments
 (0)