From 19e54baaad43251b7a2dfb1bb0f0111781e0f919 Mon Sep 17 00:00:00 2001
From: Xavier Noria <fxn@hashref.com>
Date: Sun, 8 Nov 2015 22:32:46 -0800
Subject: more ad-hoc sleeps

This sucks, but otherwise I get occasional Fs on Mac OS X.
---
 activesupport/test/file_evented_update_checker_test.rb | 6 ++++--
 1 file 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
 
-- 
cgit v1.2.3