summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_curl.t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t/check_curl.t')
-rw-r--r--plugins/t/check_curl.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t
index 7a930a4e..7f1a2de0 100644
--- a/plugins/t/check_curl.t
+++ b/plugins/t/check_curl.t
@@ -18,7 +18,7 @@ BEGIN {
18} 18}
19 19
20 20
21my $successOutput = '/OK.*HTTP.*second/'; 21my $successOutput = '/.*HTTP.*second/';
22 22
23my $res; 23my $res;
24my $plugin = 'check_http'; 24my $plugin = 'check_http';
@@ -63,7 +63,7 @@ $res = NPTest->testCmd(
63 ); 63 );
64cmp_ok( $res->return_code, '==', 2, "Webserver $host_nonresponsive not responding" ); 64cmp_ok( $res->return_code, '==', 2, "Webserver $host_nonresponsive not responding" );
65# was CRITICAL only, but both check_curl and check_http print HTTP CRITICAL (puzzle?!) 65# was CRITICAL only, but both check_curl and check_http print HTTP CRITICAL (puzzle?!)
66like( $res->output, "/HTTP CRITICAL - Invalid HTTP response received from host on port 80: cURL returned 28 - Connection timed out after/", "Output OK"); 66like( $res->output, "/Invalid HTTP response received from host on port 80: cURL returned 28 - Connection timed out after/", "Output OK");
67 67
68$res = NPTest->testCmd( 68$res = NPTest->testCmd(
69 "./$plugin $hostname_invalid -wt 1 -ct 2" 69 "./$plugin $hostname_invalid -wt 1 -ct 2"