From 42d1bc3d4907a365f0924c5f3c9e165cc088c7b2 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 Signed-off-by: Jonathan Druart --- 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 f97626c06b..f4777c8a16 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.20.1