From 8b289501e4b153373a028d85ae9babfe5c6eb19f Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Mon, 24 Jun 2019 11:19:15 +0200 Subject: [PATCH] Fix basics tests with new data format. --- t/02_basics.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/02_basics.t b/t/02_basics.t index 304a8d5..7a250d2 100755 --- a/t/02_basics.t +++ b/t/02_basics.t @@ -39,10 +39,10 @@ ok( $? == 0 && $ret > 0, "Light log from STDIN"); $ret = `perl pgbadger -q --outdir '.' -o $TEXT -o $JSON -o - -x json $LOG > t/ret.json`; $ret = `stat --printf='%s' t/ret.json $TEXT $JSON`; chomp($ret); -ok( $? == 0 && $ret eq '13474715969134747', "Multiple output format"); +ok( $? == 0 && $ret eq '13474715985134747', "Multiple output format"); $ret = `perl pgbadger -q -o - $SYSLOG`; -ok( $? == 0 && (length($ret) == 24044 || length($ret) == 24045), "syslog report to stdout"); +ok( $? == 0 && (length($ret) > 24060), "syslog report to stdout"); `rm -f out.html`; # Remove files generated during the tests -- 2.40.0