From 80b6bc73c6ee27f4058fe74b8dc2747670847049 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Oct 2021 09:59:29 +0200 Subject: [PATCH] Bug 29363: Fix TestBuilder.t if bib 123 does not exist --- t/db_dependent/TestBuilder.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index f97626c06b6..f4777c8a167 100755 --- a/t/db_dependent/TestBuilder.t +++ b/t/db_dependent/TestBuilder.t @@ -278,7 +278,7 @@ subtest 'Tests for delete method' => sub { # Test delete in table without primary key (..) is( $schema->source('TmpHoldsqueue')->primary_columns, 0, 'Table without primary key detected' ); - my $bibno = 123; # just a number + my $bibno = $builder->build_sample_biblio->biblionumber; my $cnt1 = $schema->resultset('TmpHoldsqueue')->count; # Insert a new record in TmpHoldsqueue with that biblionumber my $val = { biblionumber => $bibno }; -- 2.25.1