From: Greg Sabino Mullane Date: Sun, 23 Aug 2009 13:29:03 +0000 (-0400) Subject: Fix test for new warning > critical logic X-Git-Tag: 2.11.0~10 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=cd1fa2161cf77eb67fee87c84942edc5457588c9;p=check_postgres.git Fix test for new warning > critical logic --- diff --git a/t/02_replicate_row.t b/t/02_replicate_row.t index 0527f145a..f39871825 100644 --- a/t/02_replicate_row.t +++ b/t/02_replicate_row.t @@ -52,8 +52,8 @@ like ($cp->run('-w foo'), qr{ERROR:.+'warning' must be a valid time}, $t); $t=qq{$S fails when called with invalid critical}; like ($cp->run('-c foo'), qr{ERROR:.+'critical' must be a valid time}, $t); -$t=qq{$S fails when critical is greater than warning time}; -like ($cp->run('-w 22 -c 44'), qr{ERROR:.+'warning' option cannot be less}, $t); +$t=qq{$S fails when warning is greater than critical time}; +like ($cp->run('-w 44 -c 22'), qr{ERROR:.+'warning' option .+ cannot be larger}, $t); $t=qq{$S fails when called with no repinfo argument}; like ($cp->run('-w 2'), qr{ERROR: Need a repinfo}, $t);