From 7ca24e0b1befbc8090d0ac145cc7d9c7625a500f Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 11 Apr 2015 07:22:53 +0000 Subject: refactored to make code consistent around sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file_exhaustive.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3