Sha256: 9070dcee1940ed0bfbb19ce6299cd586e63fef80adfc631d439eb4748b6e9ee9

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

require 'helper'

describe BatsdDash::ConnectionPool do
  let(:pool) { BatsdDash::ConnectionPool }
  let(:client) { BatsdDash::ConnectionPool::Client }

  it "should start reconnect timer after disconnect" do
    client.stubs(:new).raises(SocketError)

    pool.initialize_connection_pool

    EM.next_tick {
      pool.instance_variable_get(:@timer_active).tap { |timer|
        timer.wont_be_nil
        timer.must_be_instance_of EM::Timer
      }
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
batsd-dash-0.3.1 test/test_connection_pool.rb
batsd-dash-0.3.0 test/test_connection_pool.rb
batsd-dash-0.2.1 test/test_connection_pool.rb
batsd-dash-0.2.0 test/test_connection_pool.rb