Handle Timeout::Error instead of NoMemoryError in test
Solaris 11 CI times out instead of raising NoMemoryError for large allocations, so it cannot test ensure after NoMemoryError.
This commit is contained in:
parent
d04ba0906c
commit
3b9fe3e15a
@ -583,6 +583,9 @@ end.join
|
||||
rescue RangeError
|
||||
# MingW can raise RangeError instead of NoMemoryError,
|
||||
# so we cannot test this case.
|
||||
rescue Timeout::Error
|
||||
# Solaris 11 CI times out instead of raising NoMemoryError,
|
||||
# so we cannot test this case.
|
||||
end
|
||||
|
||||
def test_equal
|
||||
|
Loading…
x
Reference in New Issue
Block a user