1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/test
Kasper Timm Hansen 3ae8eb13cb Don't rely on the global server as a receiver.
The `WorkerTest`'s `Receiver` is imporsonating an `ActionCable::Connection::Base`, but
just delegates the logger to `ActionCable.logger`.

This creates a mismatch as the connection requires the logger to be a
`TaggedLoggerProxy`'ied logger, while the server doesn't.

Thus to ensure an exception isn't raised when the worker tries to call `tag`
other tests have to assign a proxied logger to their test server.

Instead of forcing change on other tests, have Receiver adhere to the connection
contract and use a `TaggedLoggerProxy`.

As a consequence remove more setup from the tests.
2016-02-14 17:46:48 +01:00
..
channel Revert "Revert "Eliminate the EventMachine dependency"" 2016-01-30 03:46:37 +10:30
client Handle more IO errors (especially, ECONNRESET) 2016-01-30 03:46:37 +10:30
connection Revert "Revert "Eliminate the EventMachine dependency"" 2016-01-30 03:46:37 +10:30
stubs Revert "Revert "Eliminate the EventMachine dependency"" 2016-01-30 03:46:37 +10:30
subscription_adapter Don't rely on the global server as a receiver. 2016-02-14 17:46:48 +01:00
client_test.rb Don't rely on the global server as a receiver. 2016-02-14 17:46:48 +01:00
test_helper.rb Revert "Revert "Eliminate the EventMachine dependency"" 2016-01-30 03:46:37 +10:30
worker_test.rb Don't rely on the global server as a receiver. 2016-02-14 17:46:48 +01:00