diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2024-06-20 12:09:38 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2024-06-21 13:57:07 +0900 |
| commit | 47364c147ddaf47e73e169124a782dc56b11eeb6 (patch) | |
| tree | 23e61fae25ebaf7a44958fd1691fef6920a171a6 /test/ruby | |
| parent | 185a6c991e0f9000f66a59981ce666d611143d15 (diff) | |
Apply EnvUtil.apply_timeout_scale for TestFile#test_stat
... to respect RUBY_TEST_TIMEOUT_SCALE. This test somehow fails
frequently on macos-arm-oss with --repeat-count=2
https://app.launchableinc.com/organizations/ruby/workspaces/ruby/data/test-paths/file%3Dtest%2Fruby%2Ftest_file.rb%23%23%23class%3DTestFile%23%23%23testcase%3Dtest_stat?organizationId=ruby&workspaceId=ruby&testPathId=file%3Dtest%2Fruby%2Ftest_file.rb%23%23%23class%3DTestFile%23%23%23testcase%3Dtest_stat&testSessionStatus=flake
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 9fa96f8a7c..b7cd89d32f 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -375,7 +375,7 @@ class TestFile < Test::Unit::TestCase sleep 2 File.read(path) - delta = 1 + delta = EnvUtil.apply_timeout_scale(1) stat = File.stat(path) assert_in_delta tb, stat.birthtime.to_f, delta assert_in_delta t0+2, stat.mtime.to_f, delta |
