mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f6b4bf6593
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.
21 lines
408 B
Ruby
21 lines
408 B
Ruby
require 'test_helper'
|
|
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
|
|
end
|