From 252790d060c1409c95bb1f12a644288f05c77fc9 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 20 Feb 2024 10:23:02 +0000 Subject: [PATCH] Bug 36075: QA Follow-up: Fix tests recall_1 needs to specifically be completed => 0 or else it'll sometimes be 1 and other times be 0 when running tests, causing tests to sometimes fails and other times succeed Signed-off-by: Pedro Amorim --- t/db_dependent/api/v1/recalls.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/recalls.t b/t/db_dependent/api/v1/recalls.t index 54c2265ebe2..938be00c07c 100755 --- a/t/db_dependent/api/v1/recalls.t +++ b/t/db_dependent/api/v1/recalls.t @@ -50,7 +50,7 @@ subtest 'list() tests' => sub { $t->get_ok("//$userid:$password@/api/v1/recalls")->status_is( 200, 'SWAGGER3.2.2' )->json_is( [] ); - my $recall_1 = $builder->build_object( { class => 'Koha::Recalls', value => { patron_id => $patron->id } } ); + my $recall_1 = $builder->build_object( { class => 'Koha::Recalls', value => { patron_id => $patron->id, completed => 0 } } ); my $recall_2 = $builder->build_object( { class => 'Koha::Recalls', value => { patron_id => $patron->id, completed => 1 } } ); -- 2.30.2