From c0995174415b09a9e79c1206620f30afe871fa13 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Fri, 1 Oct 2021 16:47:44 +0200 Subject: [PATCH] Bug 14957: Exclude leader from saved/updated record comparison in tests Signed-off-by: Martin Renvoize --- t/db_dependent/Biblio/MarcOverlayRules.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Biblio/MarcOverlayRules.t b/t/db_dependent/Biblio/MarcOverlayRules.t index 1e4558db3b..a0c672f2ec 100755 --- a/t/db_dependent/Biblio/MarcOverlayRules.t +++ b/t/db_dependent/Biblio/MarcOverlayRules.t @@ -720,7 +720,9 @@ subtest 'context option in ModBiblio is handled correctly' => sub { [ '500', 'a', 'One bottle of beer in the fridge' ], # original [ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio ]); - $expected_record->leader('00196 a2200073 4500'); + + # Make sure leader is equal after AddBiblio + $expected_record->leader($saved_record->leader()); is( $saved_record->as_formatted, @@ -744,7 +746,9 @@ subtest 'context option in ModBiblio is handled correctly' => sub { [ '500', 'a', 'One cold bottle of beer in the fridge' ], [ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio ]); - $expected_record->leader('00250 a2200085 4500'); + + # Make sure leader is equal after ModBiblio + $expected_record->leader($updated_record->leader()); is( $updated_record->as_formatted, -- 2.20.1