Bugzilla – Attachment 50123 Details for
Bug 16224
Random failure for t/db_dependent/Reports_Guided.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16224: Fix t/db_dependent/Reports_Guided.t
Bug-16224-Fix-tdbdependentReportsGuidedt.patch (text/plain), 1.32 KB, created by
Jonathan Druart
on 2016-04-11 11:02:46 UTC
(
hide
)
Description:
Bug 16224: Fix t/db_dependent/Reports_Guided.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-11 11:02:46 UTC
Size:
1.32 KB
patch
obsolete
>From 112a4f8cf66d6777a51f45903c93dbb6642e3e4c Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 7 Apr 2016 17:03:47 +0200 >Subject: [PATCH] Bug 16224: Fix t/db_dependent/Reports_Guided.t > >This test: > >is( scalar @{ get_saved_reports( $report_ids[0] ) }, 1, >"filter takes report id" ); > >can fail when $report_ids[0] is a substring of some saved_sql fields >from other reports (reports that have a different id than >$report_ids[0]). >We can only be sure that get_saved_reports will return at least 1 >report. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Reports_Guided.t | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/t/db_dependent/Reports_Guided.t b/t/db_dependent/Reports_Guided.t >index 4d89ebd..163a67d 100755 >--- a/t/db_dependent/Reports_Guided.t >+++ b/t/db_dependent/Reports_Guided.t >@@ -70,8 +70,7 @@ like( $report_ids[2], '/^\d+$/', "Save_report returns an id for third" ); > is( scalar @{ get_saved_reports() }, > $count, "$count reports have been added" ); > >-is( scalar @{ get_saved_reports( $report_ids[0] ) }, >- 1, "filter takes report id" ); >+ok( 0 < scalar @{ get_saved_reports( $report_ids[0] ) }, "filter takes report id" ); > > #Test delete_report > is (delete_report(),undef, "Without id delete_report returns undef"); >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16224
:
50031
|
50123
|
50138