Sha256: 9180e39016228e563ce05014d475c2161f3f781d5f16af8c94ef7ce9fbf2f5ab
Contents?: true
Size: 677 Bytes
Versions: 27
Compression:
Stored size: 677 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. require 'newrelic_rpm' class KeepaliveTest < Minitest::Test include MultiverseHelpers def test_can_reestablish_connection setup_agent(:aggressive_keepalive => true) NewRelic::Agent.agent.send(:transmit_data) # This is simulating the remote peer closing the TCP connection between # harvest cycles. $collector.last_socket.close NewRelic::Agent.agent.send(:transmit_data) metric_data_calls = $collector.calls_for('metric_data') assert_equal(2, metric_data_calls.size) end end
Version data entries
27 entries across 27 versions & 2 rubygems