From: Gilles Darold Date: Mon, 17 Jun 2019 20:12:46 +0000 (+0200) Subject: Fix test with logplex log format. X-Git-Tag: v11.0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abc26e4df16109ce401ee2c82ec9a429e5e05f6e;p=pgbadger Fix test with logplex log format. --- diff --git a/t/03_consistency.t b/t/03_consistency.t index 91ac385..38b848d 100755 --- a/t/03_consistency.t +++ b/t/03_consistency.t @@ -35,8 +35,7 @@ $ret = `perl pgbadger -q -o $OUT $HLOG`; ok( $? == 0, "Generate json report for heroku log file"); $json_ref = $json->decode(`cat $OUT`); +ok( $json_ref->{database_info}{postgres}{GREEN}{"CTE|duration"} eq "21761.546", "Consistent CTE duration"); -ok( $json_ref->{database_info}{postgres}{unknown}{"CTE|duration"} eq "21761.546", "Consistent CTE duration"); - -`rm -f $OUT`; +#`rm -f $OUT`;