Bug 30362: (Rmaint fix) Fix failing test

A change was introduced in bug 31375 which is not in 22.11.x. This patch rebases the test to remove that change and fix the failing test
This commit is contained in:
Matt Blenkinsop 2023-09-01 10:35:19 +00:00
parent a101c7da1a
commit 2b2f2aa8a3
1 changed files with 1 additions and 1 deletions

View File

@ -5777,7 +5777,7 @@ subtest "GetSoonestRenewDate tests" => sub {
);
$issue->date_due( dt_from_string )->store;
is(
GetSoonestRenewDate( $patron, $issue ),
GetSoonestRenewDate( $issue ),
dt_from_string->subtract( days => 1 )->truncate( to => 'day' ),
'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"'
);