Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
All RubyFileTest methods have a race condition #1950
irb(main):001:0> java.io.File.new("doesnotexist").isDirectory() => false
So can't you just drop the first test? And is there a race condition anyway as I don't think any of the
@chrisseaton I have a local branch with all of this fixed. I just have a few failing tests. I just recorded the issue so it will be displayed in our release notes.
And removing exists() is not quite enough because the stat() was raising if the file did not exist. I converted stat() on FileResource to return null on inabiltiy to stat()