diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-03-26 11:52:07 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-03-26 21:05:02 +0100 |
commit | f6b4bf6593f2e69ef5ea27089f1a314b5dc28c2d (patch) | |
tree | 379eeeac42e8762db8c98895a0460f9d34cbdda4 /actioncable/test/subscription_adapter | |
parent | 30bb2d80b67696c5f35ee1d0479e0fc481726043 (diff) | |
download | rails-f6b4bf6593f2e69ef5ea27089f1a314b5dc28c2d.tar.gz rails-f6b4bf6593f2e69ef5ea27089f1a314b5dc28c2d.tar.bz2 rails-f6b4bf6593f2e69ef5ea27089f1a314b5dc28c2d.zip |
Shush up EM::Hiredis when running tests.
EM::Hiredis were spewing screenfuls of warnings when running the Action Cable tests.
Copied over the technique that shushes up faye-websocket in the client tests, so
we can reduce the noise ratio.
Note: there's still warnings spewed after tests have finished when EM::Hiredis shuts
down. I haven't been able to shush them up yet.
Diffstat (limited to 'actioncable/test/subscription_adapter')
-rw-r--r-- | actioncable/test/subscription_adapter/evented_redis_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actioncable/test/subscription_adapter/evented_redis_test.rb b/actioncable/test/subscription_adapter/evented_redis_test.rb index 70333e51bd..6d20e6ed78 100644 --- a/actioncable/test/subscription_adapter/evented_redis_test.rb +++ b/actioncable/test/subscription_adapter/evented_redis_test.rb @@ -4,6 +4,17 @@ require_relative './common' class EventedRedisAdapterTest < ActionCable::TestCase include CommonSubscriptionAdapterTest + def setup + super + + # em-hiredis is warning-rich + @previous_verbose, $VERBOSE = $VERBOSE, nil + end + + def teardown + $VERBOSE = @previous_verbose + end + def cable_config { adapter: 'evented_redis', url: 'redis://127.0.0.1:6379/12' } end |