[Koha-bugs] [Bug 25638] New: API related tests failing on comparing floats
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 1 11:01:30 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25638
Bug ID: 25638
Summary: API related tests failing on comparing floats
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Test Suite
Assignee: chris at bigballofwax.co.nz
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
Failing on almost all jobs currently
23:42:46 koha_1 | # Failed test 'exact match for JSON Pointer ""'
23:42:46 koha_1 | # at t/db_dependent/api/v1/patrons_accounts.t
line 95.
23:42:46 koha_1 | # Structures begin differing at:
23:42:46 koha_1 | #
$got->{outstanding_debits}{lines}[0]{amount} = '50'
23:42:46 koha_1 | #
$expected->{outstanding_debits}{lines}[0]{amount} = '50.000000'
23:42:46 koha_1 |
23:42:46 koha_1 | # Failed test 'exact match for JSON Pointer ""'
23:42:46 koha_1 | # at t/db_dependent/api/v1/patrons_accounts.t
line 139.
23:42:46 koha_1 | # Structures begin differing at:
23:42:46 koha_1 | #
$got->{outstanding_credits}{lines}[0]{amount} = '-10'
23:42:46 koha_1 | #
$expected->{outstanding_credits}{lines}[0]{amount} = '-10.000000'
23:42:46 koha_1 | # Looks like you failed 2 tests of 12.
23:42:46 koha_1 |
23:42:46 koha_1 | # Failed test 'get_balance() tests'
23:42:46 koha_1 | # at t/db_dependent/api/v1/patrons_accounts.t line
153.
23:42:47 koha_1 | # Looks like you failed 1 test of 2.
23:42:47 koha_1 | [21:42:47] t/db_dependent/api/v1/patrons_accounts.t
................................
23:42:47 koha_1 | Dubious, test returned 1 (wstat 256, 0x100)
23:42:47 koha_1 | Failed 1/2 subtests
23:43:12 koha_1 |
23:43:12 koha_1 | # Failed test 'SWAGGER3.3.2'
23:43:12 koha_1 | # at t/db_dependent/api/v1/acquisitions_orders.t
line 129.
23:43:12 koha_1 | # Structures begin differing at:
23:43:12 koha_1 | # $got->{list_price} =
'2.02412229767404e+21'
23:43:12 koha_1 | # $expected->{list_price} =
'2024122297674040344576.000000'
23:43:14 koha_1 |
23:43:14 koha_1 | # Failed test 'Number representation should be
consistent'
23:43:14 koha_1 | # at t/db_dependent/api/v1/acquisitions_orders.t
line 154.
23:43:14 koha_1 | # Structures begin differing at:
23:43:14 koha_1 | # $got->{unit_price_tax_included} =
'2.32181072793363e+21'
23:43:14 koha_1 | # $expected->{unit_price_tax_included} =
'2321810727933630742528.000000'
23:43:14 koha_1 | # Looks like you failed 2 tests of 8.
23:43:14 koha_1 |
23:43:14 koha_1 | # Failed test 'get() tests'
23:43:14 koha_1 | # at t/db_dependent/api/v1/acquisitions_orders.t line
158.
23:43:22 koha_1 | # Looks like you failed 1 test of 5.
23:43:22 koha_1 | [21:43:22] t/db_dependent/api/v1/acquisitions_orders.t
.............................
23:43:22 koha_1 | Dubious, test returned 1 (wstat 256, 0x100)
23:43:22 koha_1 | Failed 1/5 subtests
23:43:50 koha_1 |
23:43:50 koha_1 | # Failed test 'SWAGGER3.3.2'
23:43:50 koha_1 | # at t/db_dependent/api/v1/items.t line 131.
23:43:50 koha_1 | # Structures begin differing at:
23:43:50 koha_1 | # $got->{purchase_price} = '742834.7'
23:43:50 koha_1 | # $expected->{purchase_price} = '742834.70'
23:43:50 koha_1 | # Looks like you failed 1 test of 9.
23:43:50 koha_1 |
23:43:50 koha_1 | # Failed test 'get() tests'
23:43:50 koha_1 | # at t/db_dependent/api/v1/items.t line 143.
23:43:50 koha_1 | # Looks like you failed 1 test of 2.
23:43:50 koha_1 | [21:43:50] t/db_dependent/api/v1/items.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list