TestRequire#test_loading_fifo_fd_leak: Extend the timeout limit

This commit is contained in:
Yusuke Endoh 2024-06-07 23:03:49 +09:00
parent 7944710ed4
commit b9b207f388

View File

@ -847,7 +847,7 @@ class TestRequire < Test::Unit::TestCase
f.close
File.unlink(f.path)
File.mkfifo(f.path)
assert_separately(["-", f.path], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 3)
assert_separately(["-", f.path], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
begin;
th = Thread.current
Thread.start {begin sleep(0.001) end until th.stop?; th.raise(IOError)}