Bugzilla – Attachment 75916 Details for
Bug 20906
Fix Debian 9 Test Failures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20906: Prevent test failures due to precision changes
Bug-20906-Prevent-test-failures-due-to-precision-c.patch (text/plain), 1.48 KB, created by
Martin Renvoize (ashimema)
on 2018-06-08 11:58:02 UTC
(
hide
)
Description:
Bug 20906: Prevent test failures due to precision changes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-06-08 11:58:02 UTC
Size:
1.48 KB
patch
obsolete
>From df0d249769fec0be252801d6a183f255191a1d24 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 8 Jun 2018 12:50:31 +0100 >Subject: [PATCH] Bug 20906: Prevent test failures due to precision changes > >--- > t/db_dependent/Accounts.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t >index ab1fc5fe01..f447d4658a 100644 >--- a/t/db_dependent/Accounts.t >+++ b/t/db_dependent/Accounts.t >@@ -395,7 +395,7 @@ subtest "More Koha::Account::pay tests" => sub { > is( $stat->type, 'payment', "Correct statistic type" ); > is( $stat->branch, $branch, "Correct branch logged to statistics" ); > is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" ); >- is( $stat->value, "$amount" . "\.0000", "Correct amount logged to statistics" ); >+ is( $stat->value+0, $amount, "Correct amount logged to statistics" ); > } > }; > >@@ -449,7 +449,7 @@ subtest "Even more Koha::Account::pay tests" => sub { > is( $stat->type, 'payment', "Correct statistic type" ); > is( $stat->branch, $branch, "Correct branch logged to statistics" ); > is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" ); >- is( $stat->value, "$partialamount" . "\.0000", "Correct amount logged to statistics" ); >+ is( $stat->value+0, $partialamount, "Correct amount logged to statistics" ); > } > }; > >-- >2.17.1
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 20906
:
75916
|
75920
|
75921
|
75929
|
76175
|
76176
|
76177
|
76178