Skip to content

Commit

Permalink
TEST: Fixed method call parameters in AppDynamics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
icot committed Nov 28, 2016
1 parent d43bccf commit 9c9d5e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/appdynamics.t
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};

Expand Down

0 comments on commit 9c9d5e1

Please sign in to comment.