Koha-clms/t/db_dependent/Koha
Jonathan Druart a09f673471 Bug 28509: Prevent Koha/Acquisition/Orders.t to fail randomly
The random errors were:
03:25:39 koha_1       |     #     Structures begin differing at:
03:25:39 koha_1       |     #          $got->[0] = '10'
03:25:39 koha_1       |     #     $expected->[0] = '9'

and

16:36:15 koha_1       |     #     Structures begin differing at:
16:36:15 koha_1       |     #          $got->[0] = '100'
16:36:15 koha_1       |     #     $expected->[0] = '99'

You see it coming?

We sorted the ordernumbers alphabetically.

Test plan:
0. Don't apply this patch
1. % git checkout v21.05.01 # The error is not appearing in master right now
2. Add 2 warn statements before the 'The 2 orders are returned' tests to
display $order_1->ordernumber and $order_2->ordernumber
3. MariaDB CLI > ALTER TABLE aqorders AUTO_INCREMENT=3;
4. prove t/db_dependent/Koha/Acquisition/Orders.t
=> Fail with
    #     Structures begin differing at:
    #          $got->[0] = '10'
    #     $expected->[0] = '9'
5. Apply this patch, repeat 3. and 4.
=> The test passes now.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-06 07:49:14 -04:00
..
Account Bug 28482: Unit test 2021-06-18 06:33:27 -04:00
Acquisition Bug 28509: Prevent Koha/Acquisition/Orders.t to fail randomly 2021-08-06 07:49:14 -04:00
Biblio
…
BiblioUtils
…
Cash Bug 26274: (QA follow-up) Minor fixes 2021-02-12 12:33:41 +01:00
Charges
…
Checkouts Bug 27004: Regression tests 2021-01-04 13:29:47 +01:00
Club Bug 27333: Regression tests 2021-01-27 10:45:54 +01:00
Config Bug 27154: Fix test if the cache is populated already 2021-02-09 09:21:31 +01:00
Filter
…
IssuingRules
…
Item Bug 24434: Add Unit Tests for relations 2021-06-18 10:37:17 -04:00
Library
…
Objects/Mixin
…
Patron Bug 28220: Deal with merge 2021-05-17 12:29:23 +02:00
Patrons Bug 28220: UI changes 2021-05-17 12:29:24 +02:00
Plugins
…
REST Bug 26636: Regression tests for undef case 2021-03-09 10:31:47 +01:00
SMTP Bug 26595: Remove password from the smtp_server API object 2020-10-14 15:53:38 +02:00
SearchEngine Bug 22801: (follow-up) Use date-of-publication directly 2021-07-30 09:39:33 -04:00
Subscription
…
Tags
…
Template/Plugin Bug 24665: (QA follow-up) Add tests for 'selected' 2020-11-06 17:30:08 +01:00
XSLT
…
Z3950Responder Bug 26057: (QA follow-up) Fix Biblios, Reserves, Z3950Responder and XSLT tests 2021-03-04 09:49:30 +01:00
Account.t Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
ActionLogs.t
…
ApiKeys.t
…
Authorities.t
…
BackgroundJobs.t Bug 27317: (Bug 27127 follow-up) fix t/db_dependent/Koha/BackgroundJobs.t 2020-12-30 12:05:12 -03:00
Biblio.t Bug 18989: (QA follow-up) Make Koha::Biblio->hidden_in_opac aware of OpacHiddenItemsHidesRecord 2021-05-12 14:12:07 +02:00
BiblioFrameworks.t
…
Biblios.t Bug 28273: Unit tests 2021-05-20 08:43:34 +02:00
Checkout.t Bug 26327: Add exec flag on .t file 2020-10-14 14:50:07 +02:00
Checkouts.t Bug 23207: Regression tests 2021-04-22 14:37:14 +02:00
CirculationRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CoverImages.t
…
CsvProfiles.t
…
Database.t
…
Desks.t
…
Hold.t Bug 28254: (QA follow-up) override -> force 2021-05-04 14:22:08 +02:00
Holds.t Bug 27069: Adjust tests 2021-04-07 16:08:04 +02:00
IssuingRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Item.t Bug 27064: (QA follow-up) Pass 'replace' through to Koha::Item::Transfer->cancel 2021-06-18 07:11:51 -04:00
ItemTypes.t Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
Items.t Bug 28286: show "Place hold" button if item is holdable 2021-05-10 15:46:55 +02:00
KeyboardShortcuts.t
…
Libraries.t Bug 28581: Add 'from_email_address' method and use in Koha::Patron 2021-07-09 09:05:48 -04:00
Library.t Bug 26595: Embed the whole smtp_server object 2020-10-14 15:53:38 +02:00
MarcSubfieldStructures.t
…
News.t Bug 27714: Prevent Koha::NewsItem->author to explode 2021-02-23 13:12:56 +01:00
Notices.t
…
Object.t Bug 26555: Make sure _messages is always initialized 2020-10-15 14:50:06 +02:00
Objects.t Bug 21549: Make filter_by_last_update returns a Koha::Objects-based object 2021-04-14 15:34:27 +02:00
Old.t
…
Patron.t Bug 28157: Add Koha::Patron->can_log_into 2021-04-22 14:50:12 +02:00
Patrons.t Bug 28490: Revert "Bug 26995: Remove references to relationship column" 2021-06-18 07:47:34 -04:00
Pseudonymization.t
…
Quotes.t
…
Ratings.t
…
Reports.t Bug 24695: Move to Koha::Report->is_sql_valid 2021-04-12 15:27:50 +02:00
Reviews.t
…
SMS_Providers.t
…
SearchField.t Bug 19482: (follow-up) Fix update, add tests, restore closing </td> 2020-11-04 12:59:33 +01:00
SharedContent.t
…
Statistics.t
…
Subscription.t
…
Suggestion.t
…
Suggestions.t
…
Tags.t
…
Z3950Servers.t
…