diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-11 07:22:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-11 07:22:53 +0000 |
commit | 7ca24e0b1befbc8090d0ac145cc7d9c7625a500f (patch) | |
tree | e9b6807b04d8822fd7ed4273cb4355d9cedc6e8b /test/ruby/test_file_exhaustive.rb | |
parent | aed411d561d41c9687453210c20c4f57815534ac (diff) |
refactored to make code consistent around sleep.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index ba4f1e6183..935fd9ec49 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -135,8 +135,8 @@ class TestFileExhaustive < Test::Unit::TestCase end def test_stat - hardlinkfile fn1 = regular_file + hardlinkfile sleep(1.1) fn2 = fn1 + "2" make_file("foo", fn2) @@ -1044,6 +1044,7 @@ class TestFileExhaustive < Test::Unit::TestCase def test_test fn1 = regular_file + hardlinkfile sleep(1.1) fn2 = fn1 + "2" make_file("foo", fn2) @@ -1096,7 +1097,7 @@ class TestFileExhaustive < Test::Unit::TestCase fn1 = regular_file hardlinkfile sleep(1.1) - fn2 = regular_file + "2" + fn2 = fn1 + "2" make_file("foo", fn2) fs1, fs2 = File::Stat.new(fn1), File::Stat.new(fn2) assert_nothing_raised do |