Bug 38775 - t/db_dependent/Circulation/transfers.t might fail for tiny time difference
Summary: t/db_dependent/Circulation/transfers.t might fail for tiny time difference
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Chris Cormack
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-23 14:00 UTC by Katrin Fischer
Modified: 2024-12-23 14:00 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2024-12-23 14:00:32 UTC
The test failed today on D11. We can see that there is time difference of 1 minute (maybe only a few seconds actually). 
It might be a nice project to make this a bit more fail resistant:

14:37:09 koha_1       | #   Failed test 'Barcode and itemnumber for same item both generate same TransferSlip'
14:37:09 koha_1       | #   at t/db_dependent/Circulation/transfers.t line 215.
14:37:09 koha_1       | # Compared $data->{"content"}
14:37:09 koha_1       | #    got : '<h5>Date: 12/23/2024 13:34</h5>
14:37:09 koha_1       | # <br>
14:37:09 koha_1       | # <h3>Transfer to qDCKpj</h3>
14:37:09 koha_1       | # <br>
14:37:09 koha_1       | # <h3>ITEM</h3>
14:37:09 koha_1       | # <h4></h4>
14:37:09 koha_1       | # <h5></h5>
14:37:09 koha_1       | # <ul>
14:37:09 koha_1       | #    <li>1</li>
14:37:09 koha_1       | #    <li>callnumber1</li>
14:37:09 koha_1       | # </ul>'
14:37:09 koha_1       | # expect : '<h5>Date: 12/23/2024 13:35</h5>
14:37:09 koha_1       | # <br>
14:37:09 koha_1       | # <h3>Transfer to qDCKpj</h3>
14:37:09 koha_1       | # <br>
14:37:09 koha_1       | # <h3>ITEM</h3>
14:37:09 koha_1       | # <h4></h4>
14:37:09 koha_1       | # <h5></h5>
14:37:09 koha_1       | # <ul>
14:37:09 koha_1       | #    <li>1</li>
14:37:09 koha_1       | #    <li>callnumber1</li>
14:37:09 koha_1       | # </ul>'
14:37:09 koha_1       | # Looks like you failed 1 test of 19.