mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 04:24:04 +02:00
Fix filesystem dependent tests
Ruby cannot guarantee the resolutions of underlying filesystems.
This commit is contained in:
parent
abd473928e
commit
ddca0c6686
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ describe "File.utime" do
|
|||
it "sets nanosecond precision" do
|
||||
t = Time.utc(2007, 11, 1, 15, 25, 0, 123456.789r)
|
||||
File.utime(t, t, @file1)
|
||||
File.atime(@file1).nsec.should == 123456789
|
||||
File.mtime(@file1).nsec.should == 123456789
|
||||
File.atime(@file1).nsec.should.between?(0, 123500000)
|
||||
File.mtime(@file1).nsec.should.between?(0, 123500000)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue