1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Partially revert 14b20ce

The failure have returned, so disabling the tests again. (The upgrade is
fine to keep.)
This commit is contained in:
Godfrey Chan 2015-11-27 01:29:53 -08:00
parent 6be6d8d234
commit 9d7d12c004
2 changed files with 13 additions and 2 deletions

View file

@ -5,6 +5,11 @@ require 'file_update_checker_shared_tests'
class FileEventedUpdateCheckerTest < ActiveSupport::TestCase
include FileUpdateCheckerSharedTests
def setup
skip if ENV['LISTEN'] == '0'
super
end
def new_checker(files = [], dirs = {}, &block)
ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block).tap do
wait

View file

@ -111,9 +111,15 @@ class Build
end
def env
# Provide extra ENV variables for the build here
if activesupport? && !isolated?
# There is a known issue with the listen tests that casuses files to be
# incorrectly GC'ed even when they are still in-use. The current is to
# only run them in isolation to avoid randomly failing our test suite.
{ 'LISTEN' => '0' }
else
{}
end
end
def run_bug_report_templates
Dir.glob('bug_report_templates/*.rb').all? do |file|