diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/subscriber/test_helper.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/lib/rails/subscriber/test_helper.rb b/railties/lib/rails/subscriber/test_helper.rb index d8a8551a45..8b981dc3a6 100644 --- a/railties/lib/rails/subscriber/test_helper.rb +++ b/railties/lib/rails/subscriber/test_helper.rb @@ -1,5 +1,5 @@ -require 'rails' require 'rails/subscriber' +require 'active_support/notifications' module Rails class Subscriber @@ -101,6 +101,11 @@ module Rails def queue ActiveSupport::Notifications::Fanout.new(false) end + + def wait + sleep(0.01) + super + end end end end
\ No newline at end of file |