[check_postgres] [commit] Regex fix: relation may be index, not table.
check_postgres at bucardo.org
check_postgres at bucardo.org
Thu Apr 30 20:33:15 UTC 2009
Committed by Greg Sabino Mullane <greg at endpoint.com>
Regex fix: relation may be index, not table.
---
t/02_relation_size.t | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/t/02_relation_size.t b/t/02_relation_size.t
index 6adb6b4..add51b6 100644
--- a/t/02_relation_size.t
+++ b/t/02_relation_size.t
@@ -42,11 +42,10 @@ $t = qq{$S identifies host};
like ($result, qr{host:$host}, $t);
$t = qq{$S processes 'perflimit=1'};
-like ($cp->run(q{-w 1 --perflimit 1}),
- qr{time=\d+\.\d{2}(?:\s+\w+\.\w+=\d+){1}\s+\Z}, $t);
+like ($cp->run(q{-w 1 --perflimit 1}), qr{time=\d+\.\d\d(?:\s+(?:\w+\.)?\w+=\d+){1}\s+\Z}, $t);
+
$t = qq{$S processes 'perflimit=2'};
-like ($cp->run(q{-w 1 --perflimit 2}),
- qr{time=\d+\.\d{2}(?:\s+\w+\.\w+=\d+){2}\s+\Z}, $t);
+like ($cp->run(q{-w 1 --perflimit 2}), qr{time=\d+\.\d\d(?:\s+(?:\w+\.)?\w+=\d+){2}\s+\Z}, $t);
$t = qq{$S detects no matching tables due to unknown user};
like ($cp->run(q{-w 1 --includeuser foo}), qr{$label OK:.*No matching entries found due to user exclusion/inclusion options}, $t);
--
1.6.0.5
More information about the Check_postgres
mailing list