Bug 36936: (QA follow-up) Make the test work on MySQL 8.x

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2024-07-25 14:46:41 -03:00
parent a62d39ea11
commit 43985e90db
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -269,7 +269,7 @@ subtest 'add() tests' => sub {
$t->post_ok( "//$userid:$password@/api/v1/bookings" => json => $booking )->status_is(409)
->json_is( "/error" => "Duplicate booking_id" );
}
qr/DBD::mysql::st execute failed: Duplicate entry '(.*?)' for key 'PRIMARY'/;
qr/DBD::mysql::st execute failed: Duplicate entry '(.*?)' for key '(.*\.?)PRIMARY'/;
# TODO: Test bookings clashes
# TODO: Test item auto-assignment