summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2024-06-07 22:34:28 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-06-07 22:37:08 +0900
commit91b86f1b4f1b6b269cca800fbbe53415f0d8d173 (patch)
treee9c59dce8ee743d2ca32f00a68b30198cf7b0b05 /test/ruby
parent51bb5dcd2e63d7902794d42147817733249d3dd9 (diff)
TestRegexp#test_s_timeout: accept timeout errors more tolerantly
This test seems flaky on macOS GitHub Actions
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_regexp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index c72029ca80..78007094ef 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1783,7 +1783,7 @@ class TestRegexp < Test::Unit::TestCase
end
t = Time.now - t
- assert_in_delta(timeout, t, timeout / 2)
+ assert_operator(timeout, :<=, [timeout * 1.5, 1].max)
end;
end