Sha256: 7cb8b1438df9822b4425a2de8fc3440d3b33793d320e001bfb53fa261a11a2a4
Contents?: true
Size: 706 Bytes
Versions: 3
Compression:
Stored size: 706 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' require 'multiverse_helpers' 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
3 entries across 3 versions & 1 rubygems