diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2015-11-26 02:52:00 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2015-11-26 02:52:00 -0800 |
commit | 71ffd9b521685cefd64f53eba989012701cef590 (patch) | |
tree | 17e10faa25f1ad517c75338efae80e45d1b06b81 /activesupport/test | |
parent | 3fcc0ca99107fa57110421b392f5854555f17fe2 (diff) | |
download | rails-71ffd9b521685cefd64f53eba989012701cef590.tar.gz rails-71ffd9b521685cefd64f53eba989012701cef590.tar.bz2 rails-71ffd9b521685cefd64f53eba989012701cef590.zip |
Only run listen tests in isolation, for now
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.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/file_evented_update_checker_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/file_evented_update_checker_test.rb index 071449d399..ec3a7e28f3 100644 --- a/activesupport/test/file_evented_update_checker_test.rb +++ b/activesupport/test/file_evented_update_checker_test.rb @@ -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 |