From 9c9d5e113c25b62fdeee1655a3a398764afb87c3 Mon Sep 17 00:00:00 2001 From: Ignacio Coterillo Date: Mon, 28 Nov 2016 17:55:05 +0100 Subject: [PATCH] TEST: Fixed method call parameters in AppDynamics tests --- t/appdynamics.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/appdynamics.t b/t/appdynamics.t index 063cec7..279a8aa 100644 --- a/t/appdynamics.t +++ b/t/appdynamics.t @@ -46,19 +46,19 @@ my $data = \%metadata; subtest 'is_enabled' => sub { $mock_db->mock('do', sub {return 1;}); - is(DBOD::Monitoring::Appdynamics::is_enabled('testserver', $conf->{appdynamics}), $TRUE, + is(DBOD::Monitoring::Appdynamics::is_enabled('testserver', $conf), $TRUE, 'is_enabled: true'); $mock_db->mock('do', sub {return 0;}); - is(DBOD::Monitoring::Appdynamics::is_enabled('testserver', $conf->{appdynamics}), $FALSE, + is(DBOD::Monitoring::Appdynamics::is_enabled('testserver', $conf), $FALSE, 'is_enabled: false'); }; subtest 'disable' => sub { $mock_db->mock('do', sub {return 1;}); - is(DBOD::Monitoring::Appdynamics::disable('testserver', $conf->{appdynamics}), $OK, + is(DBOD::Monitoring::Appdynamics::disable('testserver', $conf), $OK, 'disable: SUCCESS'); $mock_db->mock('do', sub {return 0;}); - is(DBOD::Monitoring::Appdynamics::disable('testserver', $conf->{appdynamics}), $ERROR, + is(DBOD::Monitoring::Appdynamics::disable('testserver', $conf), $ERROR, 'disable: FAIL'); };