mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Apply timeout-scale to test_nogvl_poll.
This commit is contained in:
parent
35e5b8fb82
commit
265968d675
Notes:
git
2020-07-30 18:29:05 +09:00
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ module Fiddle
|
|||
n1 = f.call(nil, 0, msec)
|
||||
n2 = th.value
|
||||
t1 = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)
|
||||
assert_in_delta(msec, t1 - t0, 180, 'slept amount of time')
|
||||
delta = EnvUtil.apply_timeout_scale(180)
|
||||
assert_in_delta(msec, t1 - t0, delta, 'slept amount of time')
|
||||
assert_equal(0, n1, perror("poll(2) in main-thread"))
|
||||
assert_equal(0, n2, perror("poll(2) in sub-thread"))
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue