Koha-clms/t/db_dependent/Koha
Jonathan Druart 1634dd122b 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>
2021-07-30 15:54:06 +02:00
..
Account Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Acquisition Bug 28509: Prevent Koha/Acquisition/Orders.t to fail randomly 2021-07-30 15:54:06 +02:00
Biblio Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
BiblioUtils
…
Cash
…
Charges Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Checkouts Bug 28588: Unit tests 2021-06-23 15:09:56 +02:00
Club Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Config
…
Filter Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
IssuingRules
…
Item Bug 24434: Add Unit Tests for relations 2021-06-15 11:46:13 +02:00
Library
…
Objects/Mixin
…
Patron Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Patrons Bug 27883: Add ability to preserve patron field from being overwritten by import 2021-07-12 15:47:33 +02:00
Plugins Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
REST Bug 26636: Regression tests for undef case 2021-03-09 10:31:47 +01:00
SMTP
…
SearchEngine Bug 22801: (follow-up) Use date-of-publication directly 2021-07-26 10:39:18 +02:00
Subscription
…
Tags
…
Template/Plugin
…
XSLT
…
Z3950Responder Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Account.t Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
ActionLogs.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ApiKeys.t
…
Authorities.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
BackgroundJobs.t
…
Biblio.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
BiblioFrameworks.t
…
Biblios.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Checkout.t
…
Checkouts.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
CirculationRules.t
…
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 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
IssuingRules.t
…
Item.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ItemTypes.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Items.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
KeyboardShortcuts.t
…
Libraries.t Bug 28581: Add 'from_email_address' method and use in Koha::Patron 2021-06-23 15:09:55 +02:00
Library.t
…
MarcSubfieldStructures.t
…
News.t Bug 22544: Clarify documentation and change param 'type' to 'location' 2021-07-06 12:17:28 +02:00
Notices.t Bug 28514: Remove getletter 2021-06-21 13:49:58 +02:00
Object.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +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 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Pseudonymization.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
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
…
SharedContent.t
…
Statistics.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Subscription.t
…
Suggestion.t
…
Suggestions.t
…
Tags.t
…
Z3950Servers.t
…