Merge pull request #52339 from Shopify/fix-file-update-shared-tests

Simplify FileUpdateCheckerSharedTests
This commit is contained in:
Jean Boussier 2024-07-25 18:46:24 +02:00 committed by GitHub
commit bfd3cfdbfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 175 additions and 179 deletions

View File

@ -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)

View File

@ -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