aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/stubs/test_server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actioncable/test/stubs/test_server.rb')
-rw-r--r--actioncable/test/stubs/test_server.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actioncable/test/stubs/test_server.rb b/actioncable/test/stubs/test_server.rb
index b64ff33789..02be72d0cb 100644
--- a/actioncable/test/stubs/test_server.rb
+++ b/actioncable/test/stubs/test_server.rb
@@ -28,7 +28,9 @@ class TestServer
@event_loop ||= if @config.use_faye
ActionCable::Connection::FayeEventLoop.new
else
- ActionCable::Connection::StreamEventLoop.new
+ ActionCable::Connection::StreamEventLoop.new.tap do |loop|
+ loop.instance_variable_set(:@executor, Concurrent.global_io_executor)
+ end
end
end