Sha256: 5c88e0c01934b06a54b86e08f4bec86e394ca75fd05599748bd885e87cca2c9c
Contents?: true
Size: 613 Bytes
Versions: 17
Compression:
Stored size: 613 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. class NoDnsResolv < Test::Unit::TestCase def test_should_no_resolve_hostname_when_agent_is_disabled Resolv.expects(:getaddress).never NewRelic::Agent.manual_start(:monitor_mode => false) end def setup NewRelic::Agent::Agent.instance_variable_set(:@instance, NewRelic::Agent::Agent.new) end def teardown $collector.reset NewRelic::Agent.shutdown NewRelic::Agent::Agent.instance_variable_set(:@instance, nil) end end
Version data entries
17 entries across 17 versions & 1 rubygems