summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 07:22:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 07:22:53 +0000
commit7ca24e0b1befbc8090d0ac145cc7d9c7625a500f (patch)
treee9b6807b04d8822fd7ed4273cb4355d9cedc6e8b /test
parentaed411d561d41c9687453210c20c4f57815534ac (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')
-rw-r--r--test/ruby/test_file_exhaustive.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index ba4f1e6183f..935fd9ec491 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