From 2e0da16fad96241dc6bde04daecc7ced840e9c9a Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Tue, 8 Jan 2008 11:35:06 +0000 Subject: more r1879 fixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1899 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/t/check_jabber.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/t/check_jabber.t') diff --git a/plugins/t/check_jabber.t b/plugins/t/check_jabber.t index 6a3d4ef7..b6193214 100644 --- a/plugins/t/check_jabber.t +++ b/plugins/t/check_jabber.t @@ -34,7 +34,7 @@ my $jabberOK = '/JABBER OK\s-\s\d+\.\d+\ssecond response time on port 5222/'; my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/'; -my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/'; +my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/'; my $r; @@ -60,6 +60,6 @@ is( $r->return_code, 2, "Unresponsive host gives critical" ); like( $r->output, $jabberUnresponsive ); $r = NPTest->testCmd( "./check_jabber $hostname_invalid" ); -is( $r->return_code, 2, "Invalid hostname gives critical" ); +is( $r->return_code, 3, "Invalid hostname gives critical" ); like( $r->output, $jabberInvalid ); -- cgit v1.2.3