diff options
author | Samuel Williams <[email protected]> | 2025-04-23 10:17:15 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2025-04-23 01:17:15 +0000 |
commit | c1dbd01c6796adb64edc6136134be8271b933bb8 (patch) | |
tree | fac18446d5b91f701f751c5137d649f8055775ee /test | |
parent | 7c30bd50df8617063c99630112e1015ec5a743c3 (diff) |
Increase fiber sleep test tolerance. (#13152)
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'test')
-rw-r--r-- | test/fiber/test_sleep.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/test_sleep.rb b/test/fiber/test_sleep.rb index a7e88c0367..187f59dbd4 100644 --- a/test/fiber/test_sleep.rb +++ b/test/fiber/test_sleep.rb @@ -35,13 +35,13 @@ class TestFiberSleep < Test::Unit::TestCase scheduler = Scheduler.new Fiber.set_scheduler scheduler Fiber.schedule do - seconds = sleep(2) + seconds = sleep(1.1) end end thread.join - assert_operator seconds, :>=, 2, "actual: %p" % seconds + assert_operator seconds, :>=, 1, "actual: %p" % seconds end def test_broken_sleep |