From cbe2333e92562c9d722bed538704a0c617f61383 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Wed, 23 May 2018 11:32:03 -0300 Subject: [PATCH] PT-1554 Test fixes for QueryReportFormatter --- t/lib/QueryReportFormatter.t | 6 ++++-- t/lib/samples/QueryReportFormatter/report031-5.7.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/t/lib/QueryReportFormatter.t b/t/lib/QueryReportFormatter.t index c0f4e84d..11e85766 100644 --- a/t/lib/QueryReportFormatter.t +++ b/t/lib/QueryReportFormatter.t @@ -1220,9 +1220,11 @@ SKIP: { : $sandbox_version ge '5.1' ? "t/lib/samples/QueryReportFormatter/report025.txt" : "t/lib/samples/QueryReportFormatter/report026.txt"); - # 30 + # 32 + my $explain_report = $qrf->explain_report("select * from qrf.t where i=2", 'qrf'); + $explain_report =~ s/filtered: 100(\s+)/filtered: 100.00$1/; is( - $qrf->explain_report("select * from qrf.t where i=2", 'qrf'), + $explain_report, $explain, "explain_report()" ); diff --git a/t/lib/samples/QueryReportFormatter/report031-5.7.txt b/t/lib/samples/QueryReportFormatter/report031-5.7.txt index 1a429fda..a81d7406 100644 --- a/t/lib/samples/QueryReportFormatter/report031-5.7.txt +++ b/t/lib/samples/QueryReportFormatter/report031-5.7.txt @@ -9,5 +9,5 @@ # key_len: 4 # ref: const # rows: 1 -# filtered: 100 +# filtered: 100.00 # Extra: NULL