diff options
author | Xavier Noria <fxn@hashref.com> | 2015-11-08 22:32:46 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-11-08 22:49:51 -0800 |
commit | 19e54baaad43251b7a2dfb1bb0f0111781e0f919 (patch) | |
tree | 304c9e2b892988efc65a255042c2a052020ada0d /activesupport/test | |
parent | e201b9d45514c310b8194b3f0d9b8d5d711a1216 (diff) | |
download | rails-19e54baaad43251b7a2dfb1bb0f0111781e0f919.tar.gz rails-19e54baaad43251b7a2dfb1bb0f0111781e0f919.tar.bz2 rails-19e54baaad43251b7a2dfb1bb0f0111781e0f919.zip |
more ad-hoc sleeps
This sucks, but otherwise I get occasional Fs on Mac OS X.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/file_evented_update_checker_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/file_evented_update_checker_test.rb index bfaee8fb55..85c7bf29d9 100644 --- a/activesupport/test/file_evented_update_checker_test.rb +++ b/activesupport/test/file_evented_update_checker_test.rb @@ -6,7 +6,9 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase include FileUpdateCheckerWithEnumerableTestCases def new_checker(files=[], dirs={}, &block) - ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block) + ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block).tap do + wait + end end def teardown @@ -15,7 +17,7 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase end def wait - sleep 0.5 + sleep 1 end end |