From b099a7d2705428a4434813079f399dec54ec7611 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 8 Oct 2015 14:30:58 -0500 Subject: Run a single eventmachine timer to send heartbeats --- test/connection/base_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/connection') diff --git a/test/connection/base_test.rb b/test/connection/base_test.rb index 2f008652ee..81009f0849 100644 --- a/test/connection/base_test.rb +++ b/test/connection/base_test.rb @@ -3,7 +3,7 @@ require 'stubs/test_server' class ActionCable::Connection::BaseTest < ActiveSupport::TestCase class Connection < ActionCable::Connection::Base - attr_reader :websocket, :heartbeat, :subscriptions, :message_buffer, :connected + attr_reader :websocket, :subscriptions, :message_buffer, :connected def connect @connected = true @@ -40,7 +40,6 @@ class ActionCable::Connection::BaseTest < ActiveSupport::TestCase test "on connection open" do assert ! @connection.connected - EventMachine.expects(:add_periodic_timer) @connection.websocket.expects(:transmit).with(regexp_matches(/\_ping/)) @connection.message_buffer.expects(:process!) @@ -56,7 +55,6 @@ class ActionCable::Connection::BaseTest < ActiveSupport::TestCase @connection.send :on_open assert @connection.connected - EventMachine.expects(:cancel_timer) @connection.subscriptions.expects(:unsubscribe_from_all) @connection.send :on_close -- cgit v1.2.3