mirror of https://github.com/rails/rails
Merge pull request #52339 from Shopify/fix-file-update-shared-tests
Simplify FileUpdateCheckerSharedTests
This commit is contained in:
commit
bfd3cfdbfc
|
@ -3,8 +3,6 @@
|
|||
require "fileutils"
|
||||
|
||||
module FileUpdateCheckerSharedTests
|
||||
def self.included(kls)
|
||||
kls.class_eval do
|
||||
extend ActiveSupport::Testing::Declarative
|
||||
|
||||
def tmpdir
|
||||
|
@ -274,8 +272,6 @@ module FileUpdateCheckerSharedTests
|
|||
new_checker([])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def mkdir(dirs)
|
||||
|
|
|
@ -11,7 +11,7 @@ class FileUpdateCheckerTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def touch(files)
|
||||
sleep 1 # let's wait a bit to ensure there's a new mtime
|
||||
sleep 0.1 # let's wait a bit to ensure there's a new mtime
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue