From 83b73bc4271068f472506deb3c125de16414e7e9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 7 May 2018 12:22:40 -0300 Subject: [PATCH] Bug 20531: (follow-up) Set the timestamps to the same value to get a correct order There were 2 places where it was failing! --- t/db_dependent/Members/IssueSlip.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/Members/IssueSlip.t b/t/db_dependent/Members/IssueSlip.t index c4d485a15e..bfab08c8af 100644 --- a/t/db_dependent/Members/IssueSlip.t +++ b/t/db_dependent/Members/IssueSlip.t @@ -161,6 +161,11 @@ EOS $issue_date = $yesterday_daily; AddIssue( $borrower, $barcode2, $date_due, undef, $issue_date ); + # Set timestamps to the same value to avoid a different order + Koha::Checkouts->search( + { borrowernumber => $borrower->{borrowernumber} } + )->update( { timestamp => dt_from_string } ); + $expected_slip = <