From 3ba0eec20c79923ee701b13f297cc21a6f0f4a9b Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Thu, 14 Apr 2016 23:04:42 -0700 Subject: Cable: Extract stream handler construction * Use separate stream handler builders for easy override and testing. * Fix worker pool execution that was silently failing since it only expected connection receivers. Sparked by code in #24162. --- actioncable/test/channel/stream_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actioncable/test/channel') diff --git a/actioncable/test/channel/stream_test.rb b/actioncable/test/channel/stream_test.rb index df129a7c62..0b0c72ccf6 100644 --- a/actioncable/test/channel/stream_test.rb +++ b/actioncable/test/channel/stream_test.rb @@ -142,6 +142,7 @@ module ActionCable::StreamTests connection.websocket.expects(:transmit) @server.broadcast 'test_room_1', { foo: 'bar' }, coder: DummyEncoder wait_for_async + wait_for_executor connection.server.worker_pool.executor end end -- cgit v1.2.3