aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-24 19:35:01 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-28 12:50:09 -0800
commitddf681ce1d3e71aef913dd7f94c60b7622523f8b (patch)
tree68e318096f625119997eab90f1977744f7f4d57c /activesupport/test
parent6f7fc5824f2033c0f674b002dbee7f1c3f3384ac (diff)
downloadrails-ddf681ce1d3e71aef913dd7f94c60b7622523f8b.tar.gz
rails-ddf681ce1d3e71aef913dd7f94c60b7622523f8b.tar.bz2
rails-ddf681ce1d3e71aef913dd7f94c60b7622523f8b.zip
Expose a simple Queue#wait to block until all notifications are drained
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/notifications_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb
index 01106e83e9..3df2088ac9 100644
--- a/activesupport/test/notifications_test.rb
+++ b/activesupport/test/notifications_test.rb
@@ -201,6 +201,6 @@ class NotificationsMainTest < Test::Unit::TestCase
private
def drain
- sleep(0.1) until ActiveSupport::Notifications.queue.drained?
+ ActiveSupport::Notifications.queue.wait
end
end