Track down mysterious CARP_TRACE, don’t try to AUTOLOAD or create method through can()

Remove test for previous appearance in _global
This commit is contained in:
Eric A. Miller
2018-04-01 22:04:07 -04:00
parent facdf5b7a7
commit cc05fb927f
2 changed files with 5 additions and 7 deletions

View File

@@ -921,7 +921,7 @@ sub store : Tests(4) {
);
}
sub private_global : Tests(15) {
sub private_global : Tests(14) {
my $test = shift;
can_ok($test->{info}, '_global');
@@ -998,11 +998,6 @@ sub private_global : Tests(15) {
cmp_deeply($test->{info}->cache(),
$expected_cache, 'Cache contains expected data');
# Not sure if we need this anonymous sub, added by this commit
# https://github.com/netdisco/snmp-info/commit/07605051f5886ffd05f65cfbc1804c316ed904ba
is(SNMP::Info::_global('CARP_TRACE'),
undef, 'CARP_TRACE passed to _global() returns undef');
# Simulate session error, i.e. get fails
$test->{info}{sess}{ErrorStr} = 'Get Failed';